Title: Leverage browser caching &amp; wp super cache
Last modified: September 21, 2016

---

# Leverage browser caching & wp super cache

 *  [cbehen](https://wordpress.org/support/users/cbehen/)
 * (@cbehen)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/leverage-browser-caching-wp-super-cache/)
 * 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 9 years, 7 months ago by [cbehen](https://wordpress.org/support/users/cbehen/).

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

 *  [bindebale](https://wordpress.org/support/users/bindebale/)
 * (@bindebale)
 * [9 years, 7 months ago](https://wordpress.org/support/topic/leverage-browser-caching-wp-super-cache/#post-8216812)
 * 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
 *  [prokops](https://wordpress.org/support/users/prokops/)
 * (@prokops)
 * [9 years, 5 months ago](https://wordpress.org/support/topic/leverage-browser-caching-wp-super-cache/#post-8476215)
 * 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.

 * ![](https://ps.w.org/wp-super-cache/assets/icon-256x256.png?rev=3506220)
 * [WP Super Cache](https://wordpress.org/plugins/wp-super-cache/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-super-cache/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-super-cache/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-super-cache/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-super-cache/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-super-cache/reviews/)

 * 2 replies
 * 3 participants
 * Last reply from: [prokops](https://wordpress.org/support/users/prokops/)
 * Last activity: [9 years, 5 months ago](https://wordpress.org/support/topic/leverage-browser-caching-wp-super-cache/#post-8476215)
 * Status: not resolved