Specify a Vary: Accept-Encoding Header

Specify a Vary: Accept-Encoding Header | LithiumSixteen | accept,performance,security,speed,vary


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 >


No configuration required.

This plugin can be installed directly through your WordPress Plugins dashboard.
Click “Add New” and Search for “Vary: Accept-Encoding Header”.

Then Install and Activate.

Alternatively, you can download the plugin using the download button on this page and then upload the specify-a-vary-accept-encoding -header folder to the /wp-content/plugins/ directory then activate through the Plugins dashboard in WordPress.

Plugin author


Plugin official website address

If you encounter problems in using the Specify a Vary: Accept-Encoding Header plugin, you can comment below, and I will try my best to help you solve the problem

Leave a Comment

Your email address will not be published.