Wordpress - how do I leverage browser caching?

by minimo
8 replies
  • WEB DESIGN
  • |
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??
#browser #caching #leverage #wordpress
  • Profile picture of the author psahalot
    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
    {{ DiscussionBoard.errors[9430128].message }}
    • Profile picture of the author minimo
      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.
      {{ DiscussionBoard.errors[9430181].message }}
      • Profile picture of the author psahalot
        Originally Posted by minimo View Post

        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.
        It's always good to optimize your site for maximum performance.
        A fast site is good for everyone - users to search engines.

        HostGator and many other hosting companies install a couple of plugins to help users get started quickly.

        WP Super cache is easier to configure and use as compared to W3 Total cache.

        It costs nothing to optimize your site. You need to spend some 10-15 minutes. But the benefits are great. let's say, If your traffic increases, you won't face sudden down times.
        {{ DiscussionBoard.errors[9430504].message }}
  • Profile picture of the author Tim Franklin
    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.
    Signature
    Bitcoin | Crypto | Blockchain Secrets |
    {{ DiscussionBoard.errors[9430207].message }}
    • Profile picture of the author Ekushey
      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.
      Signature

      I'll solve your PHP, MySQL, WordPress or any website or server related problems.
      Hire me on Freelancer.com at an affordable rate with fast turnaround time.

      {{ DiscussionBoard.errors[9430310].message }}
      • Profile picture of the author Michael71
        Originally Posted by Ekushey View Post

        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.
        mod_expires has to be installed AND running on the Apache server to get this working!

        Read more here: How to add Apache Module mod_expires to your .htaccess | InMotion Hosting
        Signature

        HTML/CSS/jQuery/ZURB Foundation/Twitter Bootstrap/Wordpress/Frontend Performance Optimizing
        ---
        Need HTML/CSS help? Skype: microcosmic - Test Your Responsive Design - InternetCookies.eu

        {{ DiscussionBoard.errors[9431046].message }}
        • Profile picture of the author Ekushey
          Originally Posted by Michael71 View Post

          mod_expires has to be installed AND running on the Apache server to get this working!
          His site is running from Host Gator, and mod_expires is already installed and enabled there like in all major shared hosting companies. The .htaccess code above will work just fine.
          Signature

          I'll solve your PHP, MySQL, WordPress or any website or server related problems.
          Hire me on Freelancer.com at an affordable rate with fast turnaround time.

          {{ DiscussionBoard.errors[9431053].message }}
  • Profile picture of the author kpmedia
    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.
    {{ DiscussionBoard.errors[9431642].message }}

Trending Topics