希望訪客每次造訪都從伺服器重新下載最新內容,不讀取瀏覽器快取。
Pragma
no-cache
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
置於 <head> 區塊,瀏覽器讀到即禁用快取,強制向伺服器請求最新版本。
<head>
現代網站常搭配 Cache-Control: no-cache, no-store, must-revalidate 及 Expires: 0 以相容更多瀏覽器與 Proxy。
Cache-Control: no-cache, no-store, must-revalidate
Expires: 0