有沒有人知道是否有一個原因,爲什麼Asp.Net內容交付網絡上的jQuery文件的縮小版本不是gzip壓縮?非縮小版本被正確壓縮。Asp.Net CDN Minified JQuery不是Gzipped?
例子:
http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.unobtrusive-ajax.js(GZip壓縮) http://ajax.aspnetcdn.com/ajax/mvc/3.0/jquery.unobtrusive-ajax.min.js(不GZip壓縮)
如果我看谷歌CDN,縮小的文件也被gzip壓縮。不幸的是,他們不提供jquery.unobtrusive-ajax,jquery.validate或jquery.validate.unobtrusive。
HTTP/1.1 200 OK
Cache-Control: public,max-age=31536000
Content-Type: application/x-javascript
Accept-Ranges: bytes
ETag: "075379efba5cb1:0"
Vary: Accept-Encoding
Server: Microsoft-IIS/7.5
VTag: 279431312700000000
P3P: CP="ALL IND DSP COR ADM CONo CUR CUSo IVAo IVDo PSA PSD TAI TELo OUR SAMo CNT COM INT NAV ONL PHY PRE PUR UNI"
X-Powered-By: ASP.NET
Content-Length: 2745
Age: 6009332
Date: Tue, 24 May 2011 18:13:59 GMT
Last-Modified: Mon, 27 Dec 2010 19:24:02 GMT
Expires: Thu, 15 Mar 2012 04:58:27 GMT
Connection: keep-alive
感謝,
山姆
這兩個gzipped當我與提琴手檢查。 – Carvellis 2011-05-24 18:11:58