Generic filters
Exact matches only

Vary: User-Agent in WordPress – SEO

29th May 2019


vary agent with gun man

When performing a gtmetrix test (gtmetrix) you may see a problem under the Vary: Accept-Encoding area.
There are a few ways to fix this, firstly you can use Cloudflare(CDN) that does it automatically. Another way of solving this is adding it to you .htaccess file directly or adding it to your functions.php file if your using wordpress.

This is what you see in gtmetrix
Vary: User-Agent Wordpress,,

Place this in your functions.php file, its worked for me 100%

Or add this to your .htaccess file, sometimes works!

Was this code snippet helpful?

Comment on this Code Snippet?