-1
我正在使用application/json作爲發送數據的內容類型。但是,當我將contenttype更改爲gzip時,客戶端(瀏覽器)不處理從服務器發送的響應。我能做些什麼來解決這個問題嗎?我應該做的不僅僅是改變內容類型嗎?ContentType作爲Gzip不起作用?
從服務器收到的標題。
HTTP/1.1 200 OK
Server: ASP.NET Development Server/10.0.0.0
Date: Sat, 23 Jul 2011 02:30:54 GMT
X-AspNet-Version: 4.0.30319
Accept-Encoding: : gzip,deflate
Cache-Control: private
Content-Type: gzip; charset=utf-8
Content-Length: 1667
Connection: Close
您應該發佈負責所有gzip的源代碼部分。 – Gabe