Breeze sets a default 30 day browser cache
-
Breeze (v1.0.8) sets a dangerous default browser cache max-age/expires value of 30 days, which applies to all web pages (text/html) for visitors who aren’t logged in to WordPress.
The Browser Cache option says “Enable this to add expires headers to static files”; when enabled, it adds mod_expires directives to the .htaccess file, instructing browsers to cache css/js/image resources for 7 days. But it also adds “ExpiresDefault A2592000” to .htaccess, which sets Cache-Control and Expires headers to 30 days for all other content types (including text/html).
I got caught out by this because I was logged in as admin while testing everything, so WordPress was overriding the Cache-Control and Expires headers.
Now returning visitors won’t see changes to pages for 30 days (unless they manually force refresh on every page) and WordPress/plugin updates can’t be done during that time, because cached css/js/image resources expire long before the page markup itself will be re-requested.
This is a NASTY BUG!
- The topic ‘Breeze sets a default 30 day browser cache’ is closed to new replies.