Title: Cache-Control not working?
Last modified: April 24, 2019

---

# Cache-Control not working?

 *  Resolved [Derezomov](https://wordpress.org/support/users/alex-mi/)
 * (@alex-mi)
 * [7 years ago](https://wordpress.org/support/topic/cache-control-not-working/)
 * I have set up Cache control as following:
 * public, max-age=31536000, must-revalidate (1 year)
 * The default is: max-age=36000, must-revalidate (10 hours)
 * But there is no effect, the default 10 hours is still used, confirmed by GTMetrix
   and Webpagetest.org
 * I use Stateless Mode: Store and serve media files with Google Cloud Storage only.
   Media files are not stored locally.

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

 *  [blendjasper](https://wordpress.org/support/users/blendjasper/)
 * (@blendjasper)
 * [7 years ago](https://wordpress.org/support/topic/cache-control-not-working/#post-11463728)
 * I was wondering about the same issue:
 * Here my images are tested out at 24 hours:
 * [https://www.evernote.com/l/AV6wEiMfU6tJc6IZhvd64kmkp7t_lbTlFU0](https://www.evernote.com/l/AV6wEiMfU6tJc6IZhvd64kmkp7t_lbTlFU0)
 * But I have it configured as 7 days:
 * “Cache-Control
    public, max-age=604800, must-revalidate
 * Override the default cache control assigned by GCS.”
 *  Thread Starter [Derezomov](https://wordpress.org/support/users/alex-mi/)
 * (@alex-mi)
 * [7 years ago](https://wordpress.org/support/topic/cache-control-not-working/#post-11480491)
 * Yep, I saw in an older ticket: new uploaded images will automatically get the
   new cache control, but you just need to re-sync to make it work for all previous
   images. Tested with gtmetrix and webpagetest and works.

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

The topic ‘Cache-Control not working?’ is closed to new replies.

 * ![](https://ps.w.org/wp-stateless/assets/icon.svg?rev=1715943)
 * [WP-Stateless - Google Cloud Storage](https://wordpress.org/plugins/wp-stateless/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wp-stateless/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wp-stateless/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-stateless/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-stateless/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-stateless/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [Derezomov](https://wordpress.org/support/users/alex-mi/)
 * Last activity: [7 years ago](https://wordpress.org/support/topic/cache-control-not-working/#post-11480491)
 * Status: resolved