BACK TO DIRECTORY

Specify a Vary: Accept-Encoding Header

by lithiumsixteen

4.0
(4 ratings)

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 >

Screenshots

Example Page Speed Scores before installing

Example Page Speed Scores before installing

Example Page Speed Scores after installation of this plugin

Example Page Speed Scores after installation of this plugin

Plugin Details

Active Installs
200
Total Downloads
6,008
Version
1.0.0
Requires WP
3.0.1
Requires PHP
5.2
Tested Up To
4.9.31
Added
2018-04-13
Last Updated
2018-04-13 3:29am GMT

Ratings

5
3
4
0
3
0
2
0
1
1