Home Plugins specify a vary accept encoding header
Specify a Vary: Accept-Encoding Header logo

Specify a Vary: Accept-Encoding Header

by lithiumsixteen on WordPress.org

This plugin fixes a "Vary: Accept-Encoding Header" message and boosts website performance.

(4)
Example Page Speed Scores before installing

Example Page Speed Scores before installing

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 >
Active installations300+
Weekly downloads
15-11.76%
Version1.0.0
Last updated4/13/2018
WordPress version3.0.1
Tested up to4.9.26
PHP version5.2
Tags
acceptperformancesecurityspeedvary