Title: Leverage browser caching
Last modified: June 19, 2019

---

# Leverage browser caching

 *  Resolved [sergeyua12](https://wordpress.org/support/users/sergeyua12/)
 * (@sergeyua12)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/leverage-browser-caching-66/)
 * Hello,
    I use W3 Total Cache for caching. PageSpeed Insights and GTmetrix warns
   that the Leverage browser caching: *.jpg.webp (expiration not specified). What
   can you advise?
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fleverage-browser-caching-66%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/leverage-browser-caching-66/#post-11651946)
 * Have you set the caching in _WebP Express settings > General > Cache-Control 
   header_ ?
 *  Thread Starter [sergeyua12](https://wordpress.org/support/users/sergeyua12/)
 * (@sergeyua12)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/leverage-browser-caching-66/#post-11651973)
 * Yes – Custom, but 2 days ago.
    But, Conversion files without this setting.
 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/leverage-browser-caching-66/#post-11651995)
 * Ah, I see that you are on Nginx.
    You will have to add rules manually to your
   nginx config. Check out the “I am on Nginx” section in [the faq](https://wordpress.org/plugins/webp-express/)
 * You will need something like this:
    (this sets expiry to 365 days, you might 
   want to start lower)
 *     ```
       location ~* ^/wp-content/.*\.(png|jpe?g|webp)$ {
           expires 365d;
       }
       ```
   
    -  This reply was modified 6 years, 11 months ago by [rosell.dk](https://wordpress.org/support/users/roselldk/).
 *  Thread Starter [sergeyua12](https://wordpress.org/support/users/sergeyua12/)
 * (@sergeyua12)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/leverage-browser-caching-66/#post-11652123)
 * Unfortunately, I can not make changes on a shared hosting …
    Can I add this rule
   through a .htaccess file?
 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/leverage-browser-caching-66/#post-11652134)
 * Unless there is some magick on the server, .htaccess files will not be working.
   
   This also means that the redirects in the Varied Image Responses mode probably
   does not have any effect. You should use “CDN friendly” mode.
 * With regards to caching, perhaps you host supports setting this through a control
   panel? If you have no control what-so-ever and the host cannot help you with 
   a simple thing as setting cache-control, consider changing host 🙂
 *  Thread Starter [sergeyua12](https://wordpress.org/support/users/sergeyua12/)
 * (@sergeyua12)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/leverage-browser-caching-66/#post-11652334)
 * **rosell.dk** Thank you for your attention and efficiency!
 * I was offered on a hosting to remove the end of “webp” from the section “Statistical
   files”.
 * And lo and behold – all PageSpeed Insights, GTmetrix and WebPageTest do not complain!!!
 * **Thanks for the plugin!**
 *  Plugin Author [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * (@roselldk)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/leverage-browser-caching-66/#post-11652341)
 * Great, and thanks 🙂

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

The topic ‘Leverage browser caching’ is closed to new replies.

 * ![](https://ps.w.org/webp-express/assets/icon.svg?rev=1918288)
 * [WebP Express](https://wordpress.org/plugins/webp-express/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/webp-express/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/webp-express/)
 * [Active Topics](https://wordpress.org/support/plugin/webp-express/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/webp-express/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/webp-express/reviews/)

 * 7 replies
 * 2 participants
 * Last reply from: [rosell.dk](https://wordpress.org/support/users/roselldk/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/leverage-browser-caching-66/#post-11652341)
 * Status: resolved