我无法让 Azure 的 CDN 传递来自源的压缩文件。
原始文件(gzips就好了:)
http://www.schooldigger.com/cdn/clientscript/SchoolDigger.1.45.min.js
>curl -I -H "Accept-Encoding: gzip,deflate" http://www.schooldigger.com/cdn/clientscript/SchoolDigger.1.45.min.js
返回
HTTP/1.1 200 OK
Cache-Control: max-age=1209600
Content-Length: 57390
Content-Type: text/javascript
Content-Encoding: gzip
Last-Modified: Mon, 26 Nov 2012 04:45:00 GMT
Accept-Ranges: bytes
ETag: "31143cb90cbcd1:0"
Vary: Accept-Encoding
Server: Microsoft-IIS/7.0
X-Powered-By: ASP.NET
Date: Mon, 26 Nov 2012 17:25:25 GMT
CDN 文件(不返回 gzipped):
http://cdnaz.claarware.com/clientscript/SchoolDigger.1.45.min.js
>curl -I -H "Accept-Encoding: gzip,deflate" http://cdnaz.claarware.com/clientscript/SchoolDigger.1.45.min.js
返回:
HTTP/1.1 200 OK
Cache-Control: max-age=1209600
Content-Length: 150551
Content-Type: text/javascript
Accept-Ranges: bytes
ETag: "31143cb90cbcd1:0"
Server: Microsoft-IIS/7.0
X-Powered-By: ASP.NET
Age: 43723
Date: Mon, 26 Nov 2012 17:31:50 GMT
Last-Modified: Mon, 26 Nov 2012 04:45:00 GMT
Expires: Mon, 10 Dec 2012 05:23:07 GMT
Connection: keep-alive