Wordpress - how do I leverage browser caching?

by 8 replies
10
Both google webmaster tools and pingdom have been telling me that I need to leverage browser caching Website speed test

The thing is that I am using wordpress all over my website and I already have the wp super cache plugin running. What else do I need to do??
#website design #browser #caching #leverage #wordpress
  • Hi minimo,

    WP Super Cache doesn't handle Browser Caching.
    You should use W3 Total Cache.

    Here's a link that can help you set it up
    How to install and setup W3 Total Cache Plugin
    • [ 1 ] Thanks
    • [1] reply
    • Thanks - so in that case, do I need to worry about this or shall I just ignore the warnings?

      Hostgator my hosting company automatically installed wp super cache with my wp installation and it definitely still helps.
      • [1] reply
  • You should examine your server logs, find out what kind of traffic is really coming into your website.

    (I speak from experience) that IF you are using google analytics or have otherwise identified your website using any of the google tools, (confirmation ect) and your traffic is not (good) traffic you could do serious damage to your website in the "eyes of Google"

    Once you have a method of developing quality traffic, you can move on to managing the performance of your websites page loads, assets, content.

    Cacheing pages and content is a bandaid for a larger issue that most Wordpress users do not even realize exists.
    • [1] reply
    • To leverage browser cache, add the following on your .htaccess file:
      Code:
      ## EXPIRES CACHING ##
      <IfModule mod_expires.c>
      ExpiresActive On
      ExpiresByType image/jpg "access 1 year"
      ExpiresByType image/jpeg "access 1 year"
      ExpiresByType image/gif "access 1 year"
      ExpiresByType image/png "access 1 year"
      ExpiresByType text/css "access 1 month"
      ExpiresByType application/pdf "access 1 month"
      ExpiresByType text/x-javascript "access plus 1 month"  
      ExpiresByType application/javascript "access plus 1 month"  
      ExpiresByType application/x-javascript "access plus 1 month"
      ExpiresByType application/x-shockwave-flash "access 1 month"
      ExpiresByType image/x-icon "access 1 year"
      ExpiresDefault "access 2 days"
      </IfModule>
      ## EXPIRES CACHING ##
      After this recheck with Pingdom, GTmetrix, or PageSpeed, and you'll see the difference.
      • [ 2 ] Thanks
      • [1] reply
  • What's the root cause for this?
    If the site is just reported as slow, then understand that Hostgator is likely the issue here -- not the site.

    Tweaking this exact cache setting will not help much.

Next Topics on Trending Feed

  • 10

    Both google webmaster tools and pingdom have been telling me that I need to leverage browser caching Website speed test The thing is that I am using wordpress all over my website and I already have the wp super cache plugin running. What else do I need to do??