Title: Request: Static File Headers change
Last modified: December 21, 2020

---

# Request: Static File Headers change

 *  Resolved [jordanwebdev](https://wordpress.org/support/users/jordanwebdev/)
 * (@jordanwebdev)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/request-static-file-headers-change/)
 * 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)

 *  [Harshad](https://wordpress.org/support/users/bornforphp/)
 * (@bornforphp)
 * [5 years, 5 months ago](https://wordpress.org/support/topic/request-static-file-headers-change/#post-13841989)
 * [@jordanwebdev](https://wordpress.org/support/users/jordanwebdev/)
 * Thanks for sharing the information, I’ll share the same with our development 
   team, so we can match the GTMetrix suggestions.
 * Thanks,
    Harshad

Viewing 1 replies (of 1 total)

The topic ‘Request: Static File Headers change’ is closed to new replies.

 * ![](https://ps.w.org/wp-optimize/assets/icon-256x256.png?rev=1552899)
 * [WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance](https://wordpress.org/plugins/wp-optimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-optimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-optimize/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-optimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-optimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-optimize/reviews/)

## Tags

 * [cache](https://wordpress.org/support/topic-tag/cache/)
 * [gtmetrix](https://wordpress.org/support/topic-tag/gtmetrix/)
 * [headers](https://wordpress.org/support/topic-tag/headers/)

 * 1 reply
 * 2 participants
 * Last reply from: [Harshad](https://wordpress.org/support/users/bornforphp/)
 * Last activity: [5 years, 5 months ago](https://wordpress.org/support/topic/request-static-file-headers-change/#post-13841989)
 * Status: resolved