htaccess cache w/ CloudFlare
-
Hey,
I have an idea where we perhaps could use the CloudFlare headers to utilise the htaccess version of the caching.
I think we can to use the key of the country for the cache location, but in order to do so, the htaccess has to be customised to something like this (on all the rules of SuperCache:
RewriteCond %{DOCUMENT_ROOT}/wp-content/cache/supercache/%{SERVER_NAME}/$1/{%CF-IPCountry}/index-https.html.gz -f RewriteRule ^(.*) "/wp-content/cache/supercache/%{SERVER_NAME}/$1/{%CF-IPCountry}/index-https.html.gz" [L]
Do you think that would work? It would only work for ALL countries I think, maybe more complexities can be added later.
I’d be happy to help out on the code & testing !
https://www.ads-software.com/plugins/country-caching-extension-for-wp-super-cache/
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘htaccess cache w/ CloudFlare’ is closed to new replies.