Title: Browser Caching Problems
Last modified: November 7, 2020

---

# Browser Caching Problems

 *  Resolved [andreee](https://wordpress.org/support/users/andreee/)
 * (@andreee)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/browser-caching-problems/)
 * Hello everyone, I believe I have gotten myself in a pickle.
 * I have been trying to get browser caching on my website to work for a while now,
   I was able to make it work briefly (using gt metrix to test) but it stopped working
   after I added more plugins.
 * That is my next issue, I believe I had multiple caching plugins at the same time
   which is why I can’t get browser caching to work again. Throughout this whole
   time keep in mind I have been trying to enable browser caching through adding
   code to my htaccess file and through various plugins.
 * I spoke to my hosting support (namecheap), they informed me to make a new htaccess
   file because I was using multiple caching plugins. They also told me to add the
   code from this link onto the new htaccess file ([https://wordpress.org/support/article/htaccess/](https://wordpress.org/support/article/htaccess/)).
 * So I renamed my old htaccess file, made a new one, added the code and made sure
   the permissions were set to everything allowed. Now I reinstalled my caching 
   plug-in to try it but still no success, I also tried enabling thru adding code
   to the new htaccess file but no success either.
 * When I spoke with my host support the told me my mod_expires was enabled so I’m
   not sure what else could be happening here. Any advice helps thank you so much
   guys.
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fbrowser-caching-problems%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/browser-caching-problems/#post-13635840)
 * I’m not sure what your .htaccess file looks like. Lets start over with that. 
   Go to your permalink settings screen an note what the permalink style is. Via
   FTP or your hosting file manager, rename .htaccess. Go back to permalink settings
   and restore your preferred permalink style. WP will create a proper .htaccess
   if one is not found (if it is allowed to do so by server settings).
 * On your plugins list screen, deactivate and fully delete all caching plugins.
   This allows plugins to do special clean up that is sometimes needed. Ensure your
   site works properly even though there is no caching and it runs slow.
 * Pick one caching plugin, install and activate it. You’ll likely need to tweak
   its settings for optimal performance. I probably don’t need to tell you to never
   use more than one caching plugin again 🙂 (an optimization plugin is not the 
   same as caching, but be sure to not enable duplicate functionality like combining
   CSS files or something)
 *  Thread Starter [andreee](https://wordpress.org/support/users/andreee/)
 * (@andreee)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/browser-caching-problems/#post-13635966)
 * hi [@bcworkz](https://wordpress.org/support/users/bcworkz/) I appreciate your
   help, I followed all your steps and everything seems to be in order now.
 * Unfortunately it seems like no matter what I do GTMetrix tells me im not leveraging
   browser caching. It is strange because I have gotten it to work before and it
   gave me a good score with a fast loading time on GTMetrix, after I got this good
   score is when I think I installed the second caching plugin and no matter what
   I do I cant get the good score again :(, even with a clean Htaccess file its 
   very strange.
 * The two methods I have tried after getting a clean Htaccess file from your method
 * 1. WP fastest Cache Plug-In
 * 2.After this didn’t work I made a new Htaccess file using your method and I added
   this to the new Htaccess file
 * #Customize expires cache start – adjust the period according to your needs
    <
   IfModule mod_expires.c> FileETag MTime Size AddOutputFilterByType DEFLATE text/
   plain text/html text/xml text/css application/xml application/xhtml+xml application/
   rss+xml application/javascript application/x-javascript ExpiresActive On ExpiresByType
   text/html “access 600 seconds” ExpiresByType application/xhtml+xml “access 600
   seconds” ExpiresByType text/css “access 1 month” ExpiresByType text/javascript“
   access 1 month” ExpiresByType text/x-javascript “access 1 month” ExpiresByType
   application/javascript “access 1 month” ExpiresByType application/x-javascript“
   access 1 month” ExpiresByType application/x-shockwave-flash “access 1 month” 
   ExpiresByType application/pdf “access 1 month” ExpiresByType image/x-icon “access
   1 year” ExpiresByType image/jpg “access 1 year” ExpiresByType image/jpeg “access
   1 year” ExpiresByType image/png “access 1 year” ExpiresByType image/gif “access
   1 year” ExpiresDefault “access 1 month”
 * </IfModule>
    #Expires cache end # BEGIN Cache-Control Headers
 * <IfModule mod_expires.c>
    <IfModule mod_headers.c> <filesMatch “\.(ico|jpe?g|
   png|gif|swf)$”> Header append Cache-Control “public” </filesMatch> <filesMatch“\.(
   css)$”> Header append Cache-Control “public” </filesMatch> <filesMatch “\.(js)
   $”> Header append Cache-Control “private” </filesMatch> <filesMatch “\.(x?html?
   |php)$”> Header append Cache-Control “private, must-revalidate” </filesMatch>
   </IfModule> </IfModule> <IfModule mod_headers.c> Header unset ETag </IfModule
   > FileETag None
 * Neither method was able to get my score back to how it was that one day on GTMetrix.
   🙁
 *  Moderator [bcworkz](https://wordpress.org/support/users/bcworkz/)
 * (@bcworkz)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/browser-caching-problems/#post-13641403)
 * The items GTMetrix has trouble with regarding caching are 3rd party resources
   you have no control over. It doesn’t matter what you do on your site other than
   removing the resources. There are an awful lot of embedded videos. They always
   seem to take an inordinate amount of time IME. Consider using static placeholder
   thumbnails which link to the actual video embedded elsewhere on your site, preferably
   with only one or a few embeds per page.
 * I don’t know how you were so successful earlier, I think it was an anomaly with
   GTMetrix.
 *  Thread Starter [andreee](https://wordpress.org/support/users/andreee/)
 * (@andreee)
 * [5 years, 7 months ago](https://wordpress.org/support/topic/browser-caching-problems/#post-13641414)
 * [@bcworkz](https://wordpress.org/support/users/bcworkz/) oh ok I see, because
   I sell music on my store I use a lot of embedded music players with an mp3 to
   provide a preview to the customer. maybe this is the main cause of the general
   slowness. maybe the homepage videos can improve speed too if replaced with photos.
   Thank you for your help.
    -  This reply was modified 5 years, 7 months ago by [andreee](https://wordpress.org/support/users/andreee/).

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

The topic ‘Browser Caching Problems’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 4 replies
 * 2 participants
 * Last reply from: [andreee](https://wordpress.org/support/users/andreee/)
 * Last activity: [5 years, 7 months ago](https://wordpress.org/support/topic/browser-caching-problems/#post-13641414)
 * Status: resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
