Specify a Vary: Accept-Encoding Header Specify a Vary: Accept-Encoding Header

Specify a Vary: Accept-Encoding Header

Created by: LithiumSixteen

Rating:
Downloaded: 4k times

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 after installation of this plugin

Categories

Get New Themes & Resources