Title: Browser Cache
Last modified: August 25, 2020

---

# Browser Cache

 *  Resolved [janjireashwini1](https://wordpress.org/support/users/janjireashwini1/)
 * (@janjireashwini1)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/browser-cache-5/)
 * I have selected under Browser Caching option, 1 year expiry period for CSS, JAVA,
   images, Media, Cloudfare. BUt in the performance test it says 73 resources have
   4 hour expiry for cache. I also check pagespeed tests in other website, there
   also it shows error that caching expiry at 4 hours (ex. GTmetrix).
 * How to fix this?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbrowser-cache-5%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

Viewing 2 replies - 1 through 2 (of 2 total)

 *  Plugin Support [Amin – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support2/)
 * (@wpmudev-support2)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/browser-cache-5/#post-13313370)
 * Hello [@janjireashwini1](https://wordpress.org/support/users/janjireashwini1/),
 * After you changed the expiry time was the htaccess file updated with the new 
   code?
    In the .htaccess file there should be code like below:
 *     ```
       <IfModule mod_expires.c>
       ExpiresActive On
       ExpiresDefault A0
   
       <FilesMatch "\.(txt|xml|js)$">
       ExpiresDefault A31536000
       </FilesMatch>
   
       <FilesMatch "\.(css)$">
       ExpiresDefault A31536000
       </FilesMatch>
   
       <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$">
       ExpiresDefault A31536000
       </FilesMatch>
   
       <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
       ExpiresDefault A31536000
       </FilesMatch>
       </IfModule>
   
       <IfModule mod_headers.c>
         <FilesMatch "\.(txt|xml|js)$">
          Header set Cache-Control "max-age=31536000"
         </FilesMatch>
   
         <FilesMatch "\.(css)$">
          Header set Cache-Control "max-age=31536000"
         </FilesMatch>
   
         <FilesMatch "\.(flv|ico|pdf|avi|mov|ppt|doc|mp3|wmv|wav|mp4|m4v|ogg|webm|aac|eot|ttf|otf|woff|svg)$">
          Header set Cache-Control "max-age=31536000"
         </FilesMatch>
   
         <FilesMatch "\.(jpg|jpeg|png|gif|swf|webp)$">
          Header set Cache-Control "max-age=31536000"
         </FilesMatch>
       </IfModule>
       ```
   
 * if its not there or is not identical, please update it and check again.
 * kind regards,
    Kasia
 *  Plugin Support [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * (@wpmudev-support6)
 * [5 years, 9 months ago](https://wordpress.org/support/topic/browser-cache-5/#post-13395112)
 * Hello there [@janjireashwini1](https://wordpress.org/support/users/janjireashwini1/)
 * It’s been a while since we’ve heard back from you so I’m going to mark this topic
   as resolved. You can still post back any updates and we can continue.
 * Take care,
    Dimitris

Viewing 2 replies - 1 through 2 (of 2 total)

The topic ‘Browser Cache’ is closed to new replies.

 * ![](https://ps.w.org/hummingbird-performance/assets/icon-256x256.gif?rev=2633221)
 * [Hummingbird Performance - Cache & Page Speed Optimization for Core Web Vitals | Critical CSS | Minify CSS | Defer CSS Javascript | CDN](https://wordpress.org/plugins/hummingbird-performance/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/hummingbird-performance/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/hummingbird-performance/)
 * [Active Topics](https://wordpress.org/support/plugin/hummingbird-performance/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/hummingbird-performance/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/hummingbird-performance/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [Dimitris – WPMU DEV Support](https://wordpress.org/support/users/wpmudev-support6/)
 * Last activity: [5 years, 9 months ago](https://wordpress.org/support/topic/browser-cache-5/#post-13395112)
 * Status: resolved