3
我試圖在我的網站上強制csv文件沒有緩存。
我添加這些行到httpd.conf中,通過文件從阿帕奇:apache no-cache,expire
ExpiresActive On
ExpiresDefault A0
<FilesMatch "\.(html|csv|htm)$">
ExpiresDefault A0
Header set Cache-Control "no-cache, no-store, must-revalidate, max-age=0, proxy-revalidate, no-transform"
Header set Pragma "no-cache"
</FilesMatch>
但是,當我想在第一時間獲得頁面,我得到這個CSV文件:
Request Method:GET
Status Code:200 OK (from cache)
你有什麼想法我做錯了什麼?!
謝謝!
Gabi。
有你'「現在嘗試「'而不是'A0'?另外,爲什麼'標題集'中的'max-age = 0',因爲這是什麼mod_expires應該填充?你應該至少使用'標題追加'而不是'set' – fge 2012-01-01 17:53:17
仍然沒有工作:( - 我試着用「現在」,並改變了追加設置: – Gabi 2012-01-01 17:57:01