简体   繁体   English

使用Ajax Minfy缩小和压缩文件

[英]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. 使用您喜欢的Web浏览器调试工具(例如Firebug)并检查HTTP请求。 If the file was indeed successfully transmitted as a gzipped file, you will see a Content-Encoding: gzip header. 如果该文件确实确实已成功作为gzip压缩文件传输,则将看到Content-Encoding: gzip标头。 It may also say deflate , which is more or less the same thing. 也可能会说deflate ,或多或少是同一件事。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 使用Ajax Minfy工具压缩文件 - Gzipping file using Ajax Minfy tool 在AJAX请求/响应中压缩/缩小JSON - Compress/Minify JSON in AJAX requests/responses 使用Webpack将多个javascript文件压缩和压缩为一个? - Compress and Minify multiples javascript files into one, with Webpack? Ruby on Rails:缩小或压缩Javascript文件? - Ruby on Rails: Minify or Compress Javascript Files? 如何在Visual Studio中禁用自动缩小和压缩javascripts文件? - How to disable automatic minify and compress javascripts files on Visual Studio? 如何使用Minify插件在Sublime 3中使用Ajax调用来最小化js文件? - How to minify js file with ajax call in Sublime 3 using Minify plugin? 如何使用Eclipse JSDT缩小JavaScript文件? - how to minify JavaScript files using Eclipse JSDT? 如何仅使用uglifyjs缩小文件? - How to minify files using only uglifyjs? 使用Guard将javascript文件缩小到另一个目录 - Using guard to minify javascript files into a different directory 如何在不崩溃控制台的情况下同时或按顺序缩小/压缩数千个JS文件(包括一些大文件)? - How to minify/compress thousands of JS files - including some large ones - at the same time or sequentially without crashing the console?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM