• When I do google pagespeed insights test, I get many leverage browser caching errors that images’s expirations not specified.

    I read that I have to add this code below

    How can i add this code to wp super cache?
    Do you i have to use: Use mod_rewrite to serve cache files instead of
    By default it is : Use PHP to serve cache files. (Recommended)

    —Code—-
    # BEGIN EXPIRES

    ExpiresActive On
    ExpiresDefault “access plus 10 days”
    ExpiresByType text/css “access plus 1 week”
    ExpiresByType text/plain “access plus 1 month”
    ExpiresByType image/svg+xml “access 1 month”
    ExpiresByType image/gif “access plus 1 month”
    ExpiresByType image/png “access plus 1 month”
    ExpiresByType image/jpeg “access plus 1 month”
    ExpiresByType application/x-javascript “access plus 1 month”
    ExpiresByType application/javascript “access plus 1 week”
    ExpiresByType application/x-icon “access plus 1 year”

    # END EXPIRES

    • This topic was modified 8 years, 5 months ago by cbehen.
Viewing 2 replies - 1 through 2 (of 2 total)
  • Hey cbehen,

    I’ve got the same problem – WP Super Cache is working, test results are okay, however Page Insights and YSlow show that expiration dates aren’t specified.

    I’ve added the code you mentioned to htaccess, but still have the problem. Maybe someone have a solution?

    Regards,
    Kuba

    I am interested in a solution also. The Expires in .htaccess doen’t do it for me either.

    Could you comment?

    Cheers

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Leverage browser caching & wp super cache’ is closed to new replies.