跳到内容

Specify a Vary: Accept-Encoding Header

v1.0.0

lithiumsixteen · 2018年4月13日 上架

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

正在使用
100+
评分
4.0 / 5
累计下载
6,284
最近更新
2018年4月13日
4 条评价需要 WordPress 3.0.1+已测试到 4.9.36PHP 5.2+

贡献者

截图

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

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 >

Plums

按场景查找 WordPress 插件。安装量、评分和兼容版本来自官方目录。

导航

说明

WordPress 是 WordPress Foundation 的商标。本站与 WordPress Foundation、Automattic 没有隶属关系。这里不托管插件文件,下载和安装以 WordPress.org 上的页面为准。

© 2026 Plums