[WordPress] 外掛分享: Specify a Vary: Accept-Encoding Header

WordPress 外掛 Specify a Vary: Accept-Encoding Header 的封面圖片。

前言介紹

  • 這款 WordPress 外掛「Specify a Vary: Accept-Encoding Header」是 2018-04-12 上架。
  • 目前有 200 個安裝啟用數。
  • 上一次更新是 2018-04-13,距離現在已有 2876 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
  • 外掛最低要求 WordPress 3.0.1 以上版本才可以安裝。
  • 外掛要求網站主機運作至少需要 PHP 版本 5.2 以上。
  • 有 4 人給過評分。
  • 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。

外掛協作開發者

lithiumsixteen |

外掛標籤

vary | speed | accept | security | performance |

內容簡介

許多 WordPress 的效能優化外掛都過於臃腫,並且包含您不需要的功能。這個外掛只專注在一個功能上,能夠增加網站效能,即添加「Vary: Accept-Encoding Header」來源,當瀏覽器發出請求時,會包含 HTTP Header 讓伺服器決定該回傳什麼內容。Vary Header 是描述說明該請求的相關資訊。快取應該只有在請求與快取中的相關 Vary 資訊相符時才使用。

這個外掛將在您的 WordPress 目錄的 .htaccess Apache 檔案中加入重寫規則。程式碼範例如下:
< IfModule mod_headers.c >
< FilesMatch \".(js|css|xml|gz|html)$\" >
Header append Vary: Accept-Encoding
< /FilesMatch >
< /IfModule >

原文外掛簡介

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 >

各版本下載點

  • 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
  • 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「Specify a Vary: Accept-Encoding Header」來進行安裝。

(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。


1.0.0 | trunk |

延伸相關外掛(你可能也想知道)

暫無相關外掛推薦。

文章
Filter
Apply Filters
Mastodon