Viewing 11 replies - 1 through 11 (of 11 total)
  • Plugin Author Emre Vona

    (@emrevona)

    actually I have no idea. according to me that the most important tool is google page speed rool.

    How to Fix “Specify a Vary: Accept-Encoding Header” Warning

    https://kinsta.com/knowledgebase/specify-vary-accept-encoding-header/

    • This reply was modified 8 years, 4 months ago by Jan Dembowski. Reason: Removed shortlink
    Plugin Author Emre Vona

    (@emrevona)

    thank you @ragtech. @ thegingeek, did you try?

    Thread Starter thegingeek

    (@thegingeek)

    Thank you @ragtech I am traveling at the moment and will take a look first thing tomorrow morning and feed back, appreciate your help.

    Yes, added the code below to my “.htaccess” file…

    <IfModule mod_headers.c>
      <FilesMatch ".(js|css|xml|gz|html)$">
        Header append Vary: Accept-Encoding
      </FilesMatch>
    </IfModule>

    …Improved my “Specify a Vary: Accept-Encoding header” score to “A” (93)

    Also, use https://tools.pingdom.com/ it’s much better than Google’s “PageSpeed Insights” it also will show you your Google PageSpeed Performance Grade and so much more!

    Thread Starter thegingeek

    (@thegingeek)

    Hi Guys
    I added the code to my .htaccess but get the same result 🙁

    <IfModule mod_headers.c>
    <FilesMatch “.(js|css|xml|gz|html)$”>
    Header append Vary: Accept-Encoding
    </FilesMatch>
    </IfModule>

    Was there a particular section within the .htaccess file I should place it?

    I tried both the top and the bottom of the .htaccess file.

    Pingdom still shows this…

    The following publicly cacheable, compressible resources should have a “Vary: Accept-Encoding” header:

    https://thegingeek.com/
    https://thegingeek.com/sitespeed-js/e07619ff1604e0c743b556e4340eeea7.js

    Be great if you could take another look for me.

    Thanks

    There is “No” particular area the code needs to be placed within your “.htaccess” file.

    And do NOTE: I too still get the “The following publicly cacheable, compressible resources should have a “Vary: Accept-Encoding” header:” message!

    It was the score that was improved… As I mentioned above – it improved my score to “A” (93)… (from what was a “D”) – If you’re trying to get to a score of 100%; you may have to look at what files (Most likely they’re JS files) are causing the low scores.

    For instance, Google Maps & Twitter JS files seem to still show up for me. It may also include removing one or more Plugins… you may even need to remove some HTML.

    Pingdom shows you the specific files you’ll need to deal with (by clicking the Down Arrow). Find what those files are linked to and then you’ll have to make the choice (As an example… do I want that Map or Twitter button or can I do without it on that page).

    For me getting my score from a “D” to an “A” was good enough… I was not looking to get to 100%!

    Is this your site: https://thegingeek.com/

    Run in Pingdom:

    The following publicly cacheable, compressible resources should have a “Vary: Accept-Encoding” header:

    https://thegingeek.com/
    https://thegingeek.com/sitespeed-js/36b7b49cbadc466b80f45d56d7417ce5.js
    https://z-na.amazon-adsystem.com/widgets/onejs? … dInstanceId=06c4d9ae-9595-4e02-8c64-a69bae60f606

    My guess is it would be the last one “https://z-na.amazon-adsystem.com/widgets/onejs?&#8221;

    Search Google for “Specify a Vary: Accept-Encoding header https://z-na.amazon-adsystem.com/widgets/&#8221; and see what turns up. I found this on a quick search http://amzn.to/2H7qp9Y

    • This reply was modified 8 years, 4 months ago by ragtech.

    There is “No” particular area the code needs to be placed within your “.htaccess” file.

    And do NOTE: I too still get the “The following publicly cacheable, compressible resources should have a “Vary: Accept-Encoding” header:” message!

    It was the score that was improved… As I mentioned above – it improved my score to “A” (93)… (from what was a “D”) – If you’re trying to get to a score of 100%; you may have to look at what files (Most likely they’re JS files) are causing the low scores.

    For instance, Google Maps & Twitter JS files seem to still show up for me. It may also include removing one or more Plugins… you may even need to remove some HTML.

    Pingdom shows you the specific files you’ll need to deal with (by clicking the Down Arrow). Find what those files are linked to and then you’ll have to make the choice (As an example… do I want that Map or Twitter button or can I do without it on that page).

    For me getting my score from a “D” to an “A” was good enough… I was not looking to get to 100%!

    Is this your site: https://thegingeek.com/

    Run in Pingdom:

    The following publicly cacheable, compressible resources should have a “Vary: Accept-Encoding” header:

    https://thegingeek.com/
    https://thegingeek.com/sitespeed-js/36b7b49cbadc466b80f45d56d7417ce5.js
    https://z-na.amazon-adsystem.com/widgets/onejs? … dInstanceId=06c4d9ae-9595-4e02-8c64-a69bae60f606

    My guess is it would be the last one “https://z-na.amazon-adsystem.com/widgets/onejs?&#8221;

    Search Google for “Specify a Vary: Accept-Encoding header https://z-na.amazon-adsystem.com/widgets/&#8221; and see what turns up. I found this on a quick search http://amzn.to/2H7qp9Y

    Thread Starter thegingeek

    (@thegingeek)

    ok thanks I will take a look, appreciate your time!

    Also, make sure to check this tool: https://www.websitepulse.com/browserfullpagetest/ among other things it will show both 1st time and returning visitors loading speed, problems and solutions.

Viewing 11 replies - 1 through 11 (of 11 total)

The topic ‘“Vary: Accept-Encoding” header:’ is closed to new replies.