This plugin fixes a "Vary: Accept-Encoding Header" message and boosts website performance.
As of April 2026, Specify a Vary: Accept-Encoding Header is a WordPress vary plugin with 200 active installations and a 4/5 rating from 4 reviews. It has been downloaded 5.8K+ times in total. Requires WordPress 3.0.1+ and PHP 5.2+. Available on WordPress.org since 2018. Last updated 7 years ago — may have compatibility concerns.
Many WordPress performance plugins are bloated and include features that you don’t need. This plugin does just one thing. It adds a “Vary: Accept-Encoding Header” to boost website performance.
When browsers make a request, they include HTTP headers for the server to decide what to send back. The Vary header describes what information identifies a request. Caches should only be used if the request matches the Vary information in the cache.
This plugin adds a rewrite rule to your WordPress directory’s .htaccess Apache file.
< IfModule mod_headers.c >
< FilesMatch \".(js|css|xml|gz|html)$\" >
Header append Vary: Accept-Encoding
< /FilesMatch >
< /IfModule >
| WordPress | 3.0.1+ requiredTested up to 4.9.29 |
| PHP | 5.2+ required |
Plugin data sourced from WordPress.org. Analysis and metrics by PluginSift.