"Vary: Accept-Encoding" header:

2
174 followers

Hi All, just found a fix for the following error on Pingdom:

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


If you check your site on Pingdom (https://tools.pingdom.com) you might see this error

Go to... All In One SEO (if you use it) > File Editor > .HTACCESS (tab)

Paste this into the beginning of the .HTACCESS file

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

Click 'Save .HTACCESS'

you are all set, retest on Pingdom

(this will not fix urls that are not LOCAL to your site like Amazon, Facebook, etc, as thats their issue)

Hope that helped someone.

Regards

Andrew




Login
Create Your Free Wealthy Affiliate Account Today!
icon
4-Steps to Success Class
icon
One Profit Ready Website
icon
Market Research & Analysis Tools
icon
Millionaire Mentorship
icon
Core “Business Start Up” Training

Recent Comments

0

Login
Create Your Free Wealthy Affiliate Account Today!
icon
4-Steps to Success Class
icon
One Profit Ready Website
icon
Market Research & Analysis Tools
icon
Millionaire Mentorship
icon
Core “Business Start Up” Training