Cache-Control
- "no-cache" 表示必須先與伺服器確認傳回的回應是否已變更(ETag)
- "no-store" 直接禁止瀏覽器和所有中繼快取儲存傳回的任何回應版本 (隱私資料)
- "public" 它並不是必要項目, 因為明確的快取資訊 (max-age) 已表示
- "private" 只開放給單一使用者快取, 因此不允許任何中繼快取(包括CDN)
- "max-age" 從目前請求起 cache N 秒
Expires 與 Pragma
Expires: Thu, 19 Nov 1981 08:52:00 GMT Cache-Control: no-store, no-cache Pragma: no-cache
Pragma: no-cache => "Cache-Control: no-store, no-cache"
Pragma = 舊方式 (新: cache-control: no-cache)
* "cache-control" headers take precedence on most modern systems