Open kallehauge opened 4 years ago
Try to add novary flag to those RewriteCond manually to rules. Something like
RewriteCond %{HTTP:X-Forwarded-Proto} =https [NC,NV]
And let me know if it helps.
Hi @maxicus - just letting you know that I have received and seen the suggestion. I'm still in a running dialogue with Cloudflare about their Polish service but isolated the suggestion seems like it did the trick. I just want to be sure that they are satisfied with what W3 Total Cache adds to the header before I forward that communication :)
Hi,
Cloudflares "Polish image compression" feature do not convert images to WebP when there is a
Vary
header value that is not justAccept-Encoding
Common Cf-Polished statuses
...
__vary_headerpresent: The origin web server has sent a Vary header with a value other than accept-encoding. If the origin web server is attempting to support WebP, disable WebP at the origin web server and let Polish perform the WebP conversion._
Source: Cloudflare support
But the
X-Forwarded-Proto
rule for Apache found in PgCache_Environment::rules_core_generate_apache ends up addingX-Forwarded-Proto
to theVary
header:Seeing that W3 Total Cache includes a Cloudflare extension, then the easy solution might be something like the following?
Also; can I really be the only one who have experienced this issue since the Apache rule was introduced in
v.0.9.6
? Is there a known workaround/setting that I'm just missing?/ Best regards