<?php
echo 'first<br>';
ob_flush();
flush();
file_get_contents("http://ttt.tt");
echo "second";
如何禁用鉻緩存時使用分塊響應
http://ttt.tt不可達。所以在瀏覽器中我們可以看到輸出「第一個」,然後等待「30s」/ 每個腳本的最大執行時間爲 /那裏將輸出「秒」。在IE,FF中爲 ,它工作正常。
但在鉻,「第一」& &「第二」將一起輸出。
我的英語是bad.i不知道你是否理解。help!
我也試圖取消這些瀏覽器的緩存:
header("Cache-Control: no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache");
,但問題依然存在..
配置您的Web服務器沒有緩存。 –
@webbandit標題集**?與header()相同;設置chache過期時間? –
你有什麼網站服務器? Apache的? –