简体   繁体   中英

using Ajax Minfy To minify and compress files

我只是在检查ajax minfy工具http://ajaxmin.codeplex.com并使用它创建了一个缩小的js文件,它在结果中显示了缩小后的gzip文件内容,但我只是想确保该文件确实被压缩了..我该如何测试,以及如果我们在IIS中启用了压缩功能,但是文件已经被压缩了,IIS只会渲染文件而无需再次压缩文件或其他东西,该怎么办。

Use your favorite debugging tool for the webbrowser (like Firebug) and inspect the HTTP request. If the file was indeed successfully transmitted as a gzipped file, you will see a Content-Encoding: gzip header. It may also say deflate , which is more or less the same thing.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM