今天我發現我的網站使用不同的連接返回不同的響應。 使用我的電腦與有線互聯網連接我的網站表現得應該如此,並且會返回最新的更改,但使用手機會返回我的網站,就像兩年前一樣。使用有線互聯網連接當通過移動互聯網連接檢索時,網站發生了變化
響應頭:
Cache-Control → no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection → Keep-Alive
Content-Encoding → gzip
Content-Length → 8533
Content-Type → text/html
Date → Mon, 28 Dec 2015 09:44:57 GMT
Expires → Thu, 19 Nov 1981 08:52:00 GMT
Keep-Alive → timeout=5, max=100
Pragma → no-cache
Server → Apache/2.2.22 (Ubuntu)
Vary → Accept-Encoding
X-Powered-By → PHP/5.3.10-1ubuntu3.8
響應通過分享從我的手機互聯網連接頭。與以前一樣的瀏覽器和URL。出於某種原因它會返回一箇舊頁面,但我期望它返回最新的頁面。
Accept-Ranges → bytes
Age → 0
Cache-Control → no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Connection → keep-alive
Content-Encoding → gzip
Content-Length → 3544
Content-Type → text/html
Date → Mon, 28 Dec 2015 09:34:41 GMT
Expires → Thu, 19 Nov 1981 08:52:00 GMT
Pragma → no-cache
Server → Apache/2.2.22 (Ubuntu)
Vary → Accept-Encoding
Via → 1.1 varnish
X-Cache-Hit → MISS
X-Varnish → 1701875350
我不知道如何開始調試。根據不同的連接,不能想到爲什麼它會返回不同的響應。
更新: 問題是我的DNS設置。 AAAA記錄指向錯誤的服務器。 因此,使用我的移動IPv6連接時出現此問題。 我留下了正確的答案,因爲這不是一個錯誤的答案。
太棒了!聯繫我的移動ISP並要求他們將我的網站從他們的緩存中刪除,現在它效果很好:) – Toydor