I am trying to append “Vary: Accept-Encoding” in header, specially for static content like image and js, css. By default EasyEngine turned this on by gzip very on; so in home page I see this returns perfectly “Vary: Accept-Encoding”.
But for static content it follows rule defined in locations.conf, which is
add_header “Access-Control-Allow-Origin” “*”;
So, I get this return for CURL for any static file
It does not matter what I configured in W3TC browser cache control policy for static content.
What am I doing wrong? is it supposed to be like that? What will the best practice if I want to append anything in header in EE system? as all files in common could get override after an update.