Double Cache Control
-
Hello Team,
If I add the below cache policy to my .htaccess file it leads to an additional cache control in the header alongside the one created by WP Cloudflare Super Page Cache and also the cache test in this case, will fail. But if I remove them everything works as expected I can see HIT and cache test succeeded.
My question, is it ok to remove the below rules? are these expired headers are now handled by WP Cloudflare Super Page Cache? or should I adjust them in a way to be more compatible with the plugin.
Please advise what is the best practice?
Thank you
# BEGIN CACHE POLICY <IfModule mod_expires.c> ExpiresActive On # Images ExpiresByType image/jpeg "access plus 1 year" ExpiresByType image/gif "access plus 1 year" ExpiresByType image/png "access plus 1 year" ExpiresByType image/webp "access plus 1 year" ExpiresByType image/svg+xml "access plus 1 year" ExpiresByType image/x-icon "access plus 1 year" # Video ExpiresByType video/webm "access plus 1 year" ExpiresByType video/mp4 "access plus 1 year" ExpiresByType video/mpeg "access plus 1 year" # Fonts ExpiresByType font/ttf "access plus 1 year" ExpiresByType font/otf "access plus 1 year" ExpiresByType font/woff "access plus 1 year" ExpiresByType font/woff2 "access plus 1 year" ExpiresByType application/font-woff "access plus 1 year" # CSS, JavaScript ExpiresByType text/css "access plus 1 month" ExpiresByType text/javascript "access plus 1 month" ExpiresByType application/javascript "access plus 1 month" # Others ExpiresByType application/pdf "access plus 1 month" ExpiresByType image/vnd.microsoft.icon "access plus 1 year" ExpiresDefault "access 2 days" </IfModule> # END CACHE POLICY
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘Double Cache Control’ is closed to new replies.