3 ms·
I'm using LiteSpeed Cache Management plugin for WordPress. It has fiddled my .htaccess to RewriteCond %{HTTP_ACCEPT} "image/webp" [or] RewriteCond %{HTTP_USER
by edent 7y ago
I'm using LiteSpeed Cache Management plugin for WordPress.
It has fiddled my .htaccess to
RewriteCond %{HTTP_ACCEPT} "image/webp" [or]
RewriteCond %{HTTP_USER_AGENT} "Page Speed"
RewriteRule .* - [E=Cache-Control:vary=%{ENV:LSCACHE_VARY_VALUE}+webp]
But... now I think about it, I probably still have CloudFlare cacheing on. Which means that won't get hit some of the time. Hmmmm.... Let's see if my server can survive HN without a CDN.
- nitrogen 7y agoYou should be able to send a Vary: Accept header to the cache to have it cache all image types.
- judge2020 7y agoIf CF is caching, this won't work. https://support.cloudflare.com/hc/en-us/articles/217343117-What-headers-can-I-vary-the-cache-on- https://support.cloudflare.com/hc/en-us/articles/217343117-W...