今天遭遇了一個非常非常奇怪的問題,一個css文件(common.cnblogs.com/Skins/marvin3/green.css),Firefox怎么也無法打開,一直在轉圈。
而換成其它瀏覽器都能正常打開。換一個css文件名(common.cnblogs.com/Skins/marvin3/blue.css),Firefox也能打開。百思不得其解。
后來,將host換了一個名稱,由 common.cnblogs.com 改為 cdn.cnblogs.com (cdn.cnblogs.com/Skins/marvin3/green.css,換成其他名稱也可以),問題就解決了。
有時用Chrome打開common.cnblogs.com/Skins/marvin3/green.css會慢,但打開cdn.cnblogs.com/Skins/marvin3/green.css飛快。
從抓包情況看,Firefox沒有發出請求(Firebug中看不到請求發出):
有園友反饋,他們公司遇到了同樣的問題,並且已經向Mozilla提交了bug,詳見Bug 1038626 - the url can not be opened in firefox
估計是Firefox在檢查本地緩存時卡住了。
這個問題很可能與Google:safebrowsing有關,詳見:說說最近Google:safebrowsing引發頁面加載阻塞的問題