Browser Cache

General

Database Cache 和 Object Cache 並不需更改。 (因為並不需要用)
而 Browser Cache 是下載到你電腦的 Cache 會保留多久。

  • Set Last-Modified header (tick)
  • Set expires header (tick)
  • Set cache control header (tick)
  • Set entity tag (eTag) (tick)
  • Set W3 Total Cache header (tick)
  • Enable HTTP (gzip) compression (tick)
  • Prevent caching of objects after settings change (untick)
  • Don’t set cookies for static files (tick)
  • Do not process 404 errors for static objects with WordPress (tick)
  • 404 error exception list: (keep default)

W3TC Browser Cache General

CSS

  • Set Last-Modified header (tick)
  • Set expires header (tick)
  • Expires header lifetime: 31536000 seconds
  • Set cache control header (tick)
  • Cache Control policy: cache (“public”)
  • Set entity tag (ETag) (tick)
  • Set W3 Total Cache header (tick)
  • Enable HTTP (gzip) compression (tick)
  • Prevent caching of objects after settings change (untick)
  • Disable cookies for static files (tick)

W3TC Browser Cache CSS JS

HTML & XML

  • Set Last-Modified header (tick)
  • Set expires header (tick)
  • Expires header lifetime: 7200 seconds
  • Set cache control header (tick)
  • Cache Control policy: cache with max-age (“public, max-age=EXPIRES_SECONDS”)
  • Set entity tag (ETag) (tick)
  • Set W3 Total Cache header (tick)
  • Enable HTTP (gzip) compression (tick)

W3TC Browser Cache HTML XML

Media & Other Files

  • Set Last-Modified header (tick)
  • Set expires header (tick)
  • Expires header lifetime: 31536000 seconds
  • Set cache control header (tick)
  • Cache Control policy: cache (“public”)
  • Set entity tag (ETag) (tick)
  • Set W3 Total Cache header (tick)
  • Enable HTTP (gzip) compression (tick)
  • Prevent caching of objects after settings change (untick)
  • Disable cookies for static files (tick)

W3TC Browser Cache Media & Other Files

Browser Cache 的保留時間越長,對 server 的負荷會較低,而網頁的速度亦會因為不用下載而再加快。
不過網頁 update 後用戶未必能即時更新,而 “Prevent caching of objects after settings change” 可以防止這情況,但是 search engine 對不同版本的網頁可能當作新一頁,不利 SEO (即時在搜尋引擎排名會較低)。
所以不建議開啓這個選項。

Contents