• Resolved jordanwebdev

    (@jordanwebdev)


    GT Metrix suggests the following static headers:

      # Images
      ExpiresByType image/jpeg "access plus 1 year"
      ExpiresByType image/gif "access plus 1 year"
      ExpiresByType image/png "access plus 1 year"
      ExpiresByType image/webp "access plus 1 year"
      ExpiresByType image/svg+xml "access plus 1 year"
      ExpiresByType image/x-icon "access plus 1 year"
    
      # Video
      ExpiresByType video/webm "access plus 1 year"
      ExpiresByType video/mp4 "access plus 1 year"
      ExpiresByType video/mpeg "access plus 1 year"
    
      # Fonts
      ExpiresByType font/ttf "access plus 1 year"
      ExpiresByType font/otf "access plus 1 year"
      ExpiresByType font/woff "access plus 1 year"
      ExpiresByType font/woff2 "access plus 1 year"
      ExpiresByType application/font-woff "access plus 1 year"
    
      # CSS, JavaScript
      ExpiresByType text/css "access plus 1 month"
      ExpiresByType text/javascript "access plus 1 month"
      ExpiresByType application/javascript "access plus 1 month"
    
      # Others
      ExpiresByType application/pdf "access plus 1 month"
      ExpiresByType image/vnd.microsoft.icon "access plus 1 year"

    Currently, wp-optimize only does the following:

    ExpiresByType text/css "access 12 months"
     ExpiresByType text/html "access 12 months"
     ExpiresByType image/gif "access 12 months"
     ExpiresByType image/png "access 12 months"
     ExpiresByType image/jpg "access 12 months"
     ExpiresByType image/jpeg "access 12 months"
     ExpiresByType image/webp "access 12 months"
     ExpiresByType image/x-icon "access 12 months"
     ExpiresByType application/pdf "access 12 months"
     ExpiresByType application/javascript "access 12 months"
     ExpiresByType text/x-javascript "access 12 months"
     ExpiresByType application/x-shockwave-flash "access 12 months"
     ExpiresDefault "access 12 months"

    Also, the default time is 28 days, rather than the suggested 1 year. Note how some file types, like CSS and JS, are suggested to have shorter time intervals, rather than a catch-all for all types.

    Can you please update WP-Optimize settings to match GTMetrix suggestions?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Request: Static File Headers change’ is closed to new replies.