marolej
Forum Replies Created
-
Forum: Plugins
In reply to: [W3 Total Cache] Cache-Control disabled for 304 responseHi Marko,
Ok, thanks for the update.
Good day,
MarcinForum: Plugins
In reply to: [W3 Total Cache] Cache-Control disabled for 304 responseHi Marko,
Yes, I started getting Cache-Control:max-age=51 for both 200 and 304. It was related to
ExpiresByType text/css M51
saw I changed it to:
ExpiresByType text/css A51Btw, Is there any configuration in ‘W3 Total Cache’ to periodically clean up all minified CSS & JS files and regenerated them automatically (for example, once a week)?
Regards,
Forum: Plugins
In reply to: [W3 Total Cache] Cache-Control disabled for 304 responseHi Marko,
I saw when I disabled Minify feature in ‘W3 Total Cache’ plugin I started getting Cache-Control:max-age=51. Looks like the issue is related to minification.
Probably the issue is related with some code below in .htaccess:
# BEGIN W3TC Minify cache FileETag MTime Size <IfModule mod_mime.c> AddType text/css .css_gzip AddEncoding gzip .css_gzip AddType application/x-javascript .js_gzip AddEncoding gzip .js_gzip </IfModule> <IfModule mod_deflate.c> <IfModule mod_setenvif.c> SetEnvIfNoCase Request_URI \.css_gzip$ no-gzip SetEnvIfNoCase Request_URI \.js_gzip$ no-gzip </IfModule> </IfModule> <IfModule mod_expires.c> ExpiresActive On ExpiresByType text/css M51 ExpiresByType application/x-javascript M51 </IfModule> <IfModule mod_headers.c> Header set X-Powered-By "W3 Total Cache/0.14.2" Header set Vary "Accept-Encoding" Header set Pragma "public" Header append Cache-Control "public" </IfModule> # END W3TC Minify cache # BEGIN W3TC Minify core <IfModule mod_rewrite.c> RewriteEngine On RewriteBase /wp-content/cache/minify/ RewriteCond %{HTTP:Accept-Encoding} gzip RewriteRule .* - [E=APPEND_EXT:_gzip] RewriteCond %{REQUEST_FILENAME}%{ENV:APPEND_EXT} -f RewriteRule (.*) $1%{ENV:APPEND_EXT} [L] RewriteRule ^(.+\.(css|js))$ /index.php [L] </IfModule> # END W3TC Minify coreRegards,
Forum: Plugins
In reply to: [W3 Total Cache] Cache-Control disabled for 304 responseHi Marko,
I checked your proposition, but the effect of this change is to perform a validation of the cached resources in the browser with the server every time the site is visited.
I would like to omit such validation to speed-up a page by using browser cache without validation by some time (in my example by 51 sec). That’s why I would like o get
Cache-Control: max-age=51for 200 and also for 304 responses.Regards,