Expires/Max Age compatibility with SuperCache
-
Hi Frank,
I’ve got a small compatibility issue with SuperCache. Is there any way to specify a different directory for the cache files?
I recently updated to 1.70 and enabled the “Save aggregated script/css as static files” which I really like? I’ve now switched this off.
The problem is that the max age was being set to 3 seconds. This ws being set by Supercache which adds the following .htaccess file to /wp-content/cache/ directory (and therefore /wp-content/cache/autoptimize).
# BEGIN supercache
<IfModule mod_mime.c>
<FilesMatch “\.html\.gz$”>
ForceType text/html
FileETag None
</FilesMatch>
AddEncoding gzip .gz
AddType text/html .gz
</IfModule>
<IfModule mod_deflate.c>
SetEnvIfNoCase Request_URI \.gz$ no-gzip
</IfModule>
<IfModule mod_headers.c>
Header set Vary “Accept-Encoding, Cookie”
Header set Cache-Control ‘max-age=3, must-revalidate’
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresByType text/html A3
</IfModule># END supercache
It’s not a fault with your plugin and maybe SuperCache should put the .htaccess in /wp-content/cache/supercache/. But an easy fix would be for me to move the Autoptimize folder to /public_html/wp-content/autoptimize.
I’ve tried worked around this by adding a .htaccess file to /public_html/wp-content/cache/autoptimize. This worked but got deleted whenever I purged the Autoptimize cache.
I’ve now switched back to dynamic but it would be nice to switch it back on..
Thank you for your plugin. It’s great and the only minify I’ve ever been able to get to work well.
The site is https://www.unitedworldschools.org/
Thanks
- The topic ‘Expires/Max Age compatibility with SuperCache’ is closed to new replies.