2014-09-20 100 views
0
$this->output->set_header("Cache-Control: no-store, no-cache, must-revalidate, max-age=0");  
$this->output->set_header("Cache-Control: post-check=0, pre-check=0", false); 
$this->output->set_header("Pragma: no-cache"); 

不適用於Safari瀏覽器。如果Safari瀏覽器重新按下,如何重新加載整個頁面?Codeigniter頭不能在Safari瀏覽器中工作

+0

你必須說明你的意思是「不工作」。 – Afsa 2014-09-20 08:49:24

回答

0

這實際上與HTTP緩存協議無關。 Safari假定已經加載的頁面可以簡單地恢復。我知道的唯一解決方法是實現將重新加載頁面的JavaScript事件偵聽器。 Related question

相關問題