我有我的結帳頁面與Bluehost SSL證書綁定在我的網站上,並且相當頻繁地下載頁面而不是渲染。頁面被下載而不是通過SSL呈現
這隻發生在我使用ssl的時候,如果我運行沒有它的網站,頁面加載正常。
有什麼我可以做,以防止這一點,我試圖把
<?php header("Content-type: text/html"); ?>
在頁面的頂部,但這並不解決問題。這裏是正在下載的文件頭的一個例子,當問題發生時:
HTTP/1.1 200 OK
Date: Sun, 12 Dec 2010 23:42:18 GMT
Server: Apache
X-Powered-By: PHP/5.2.14
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Encoding: gzip
Vary: Accept-Encoding
Connection: close
Transfer-Encoding: chunked
Content-Type: text/html
這裏是頭的一個例子,當它加載正確:
HTTP/1.1 200 OK
Date: Mon, 13 Dec 2010 03:04:08 GMT
Server: Apache
X-Powered-By: PHP/5.2.14
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0
Pragma: no-cache
Content-Encoding: gzip
Vary: Accept-Encoding
Keep-Alive: timeout=10, max=28
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html
問題*沒有發生時的標題是什麼? – TheDeadMedic 2010-12-13 00:11:01
我從此嘗試使用Charles Web Debugging Proxy來調試該網站,並發現當Charles使用它自己的證書時沒有問題。有可能這個問題可能是由bluehost使用的實際證書? – Rod 2010-12-13 03:50:09
我認爲問題可能歸結於Connection:close,它應該是Connection:Keep-Alive - 這完全是基於您發佈的成功和失敗響應頭的區別。 – TheDeadMedic 2010-12-13 19:09:52