• Hi there,

    i wanted to enable the Browser Caching while using the WP Super Cache Plugin and i found a piece of code which can be added to the .htaccess file.

    ## 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 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 2 days"
    </IfModule>
    ## EXPIRES CACHING ##

    Can i use that in addition with WP Super Cache for make my site faster?

    regards,

    Max

    https://www.ads-software.com/plugins/wp-super-cache/

Viewing 1 replies (of 1 total)
  • Thread Starter Mackiwu

    (@mackiwu)

    I tried it and the result was amazing. From Googles Page Speed test i receive now 89/100 Points. Before it was at 76/100. So that Code definitly works fine. The only thing is to change “ExpiresDefault “access 2 days” to “access 1 month”.

    ## 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 1 month"
    ExpiresByType application/x-shockwave-flash "access 1 month"
    ExpiresByType image/x-icon "access 1 year"
    ExpiresDefault "access 1 month"
    </IfModule>
    ## EXPIRES CACHING ##
Viewing 1 replies (of 1 total)
  • The topic ‘Leverage browser caching solution?’ is closed to new replies.