我有一個JS應用程序,它設置一個iframe URL來定位我的appengine服務。間歇地返回的頁面的內容類型爲'application/json'而不是'text/html'。重複調用總是用作「text/html」。Appengine爲什麼有時會更改內容類型?
這就是Chrome的捕捉
Request URL:http://www.clevernote.co/app/editpopupG.jsp?u=https://docs.google.com/feeds/download/documents/export/Export?id=1mc_hXOOP-PppCn3GebeGREBRDKLSXp2R1R2ij2_ki_A&exportFormat=html&t=google%20integration&i=1mc_hXOOP-PppCn3GebeGREBRDKLSXp2R1R2ij2_ki_A
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8
Accept-Charset:ISO-8859-1,utf-8;q=0.7,*;q=0.3
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Cookie:oauth2-token=; JSESSIONID=DHwIAl
Host:www.clevernote.co
Referer:http://www.clevernote.co/app/main.jsp
User-Agent:Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.1 (KHTML, like Gecko) Chrome/21.0.1180.77 Safari/537.1
Query String Parametersview URL encoded
u:https://docs.google.com/feeds/download/documents/export/Export
Response Headersview source
Cache-Control:no-cache
Content-Encoding:gzip
Content-Length:1544
Content-Type:application/json; charset=UTF-8
Date:Sun, 23 Sep 2012 02:49:37 GMT
Server:Google Frontend
Vary:Accept-Encoding
如果我重新加載頁面時,反應是正確的 「text/html的」
內容...
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<!-- CSS -->
<link href="../css/cnw ... etc
上面的網址不是來自Appengine,那麼這與Appengine有什麼關係? –
Appengine的** **是**!如果有幫助,我很樂意將其指定爲http://clever-note.appspot.com。 – pinoyyid
我得到「錯誤:服務器錯誤」,如果我嘗試該網址? –