內容簡介
良好的快取策略是提高效能的最佳方法之一,而它也可以成為您的新朋友。透過控制您的 WordPress 網站的 HTTP Cache-Control 標頭,讓中介伺服器和瀏覽器快取功能更加友善。
這不是一個快取外掛,但可以讓您更好地利用現有的標準符合快取系統。您可以根據網站的需求,為不同種類的頁面設定不同的策略。「Cache-Control for WordPress」外掛允許您為共用/中介的快取和私有快取設定不同的策略。對於每週發布一篇或兩篇文章的中等流量博客,外掛已經設定了一些明智的預設值。
您可以安全地設定長時間的 Cache-Control 時間,因為在預定發布文章之前,max-age 值會自動降低。
私有頁面(登入使用者、管理介面等)不會被快取。
此外掛有詳細的文件。
外掛標籤
開發者團隊
原文外掛簡介
Good caching policies is one of performance’s best friends, and it can be your new best friend too. Get friendly with intermediary and browser caches by taking control over your WordPress powered website’s HTTP Cache-Control headers.
This is not a caching plugin in itself, but will enable you to leverage existing standard compliant caching systems better. You can set different policies for different kinds of pages to suite your website’s needs. The Cache-Control for WordPress plugin allows you to set different policies for shared/intermediary and private caches. The plugin sets some sensible defaults for a medium traffic blog that publishes an update or two per week.
You can safely set long Cache-Control times as the max-age values is lowered automatically before a scheduled post is about to be published.
Private pages (logged in users, the admin interface, etc.) will not be cached.
The plugin has extensive documentation.
