Hello Good evening, I see that there are some users with the same problem that I have, it is that doing an analysis with gtmetrix gives me a very bad score due to the configuration of the vary in the header, I have already checked in cpanel if the gzip compression and if it is, I also tried to put the following code at the end of htaccess as I saw in a forum “not at the beginning” as I have seen in this forum.
Header append Vary: Accept-Encoding
But it had no effect. I saw that in htaccess there was already the following code:
Header append Vary: Accept-Encoding
I exchanged the lines so that the code was the same as the one above, but I did not get any improvement, gtmetrix showed me the same error.
With a header test tool I have managed to get this information:
HTTP/1.1 200 OK =>
Server => nginx
Date => Wed, 21 Mar 2018 21:03:22 GMT
Content-Type => text/html; charset=UTF-8
Connection => close
Vary => Accept-Encoding
X-Cache-Enabled => True
Link => ; rel=”https://api.w.org/”, ; rel=shortlink
Set-Cookie => wevarnishpass=0; expires=Wed, 21-Mar-2018 20:03:22 GMT; Max-Age=0; path=/
Cache-Control => max-age=2592000
Expires => Fri, 20 Apr 2018 21:03:21 GMT
X-Always-Cache => False
Age => 0
x-Cache => uncached
Accept-Ranges => bytes
Access-Control-Allow-Origin => *
As I have seen in another post, I think that the line with the word “cookie” is a bad configuration, or it could also be due to the server configuration.
If you want to do a test with gtmetrics to see the errors that appear, my website is
Can you help me? Thank you very much in advance
Cheers!
Site URL: Content only visible to registered users
Answered : 03/21/2018 10:29 pm