CSS / JS GZip压缩的COM $ P $与Asp.Net pssion [英] CSS/JS GZip Compression with Asp.Net

查看:124
本文介绍了CSS / JS GZip压缩的COM $ P $与Asp.Net pssion的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前托管的虚拟服务器上,我想启用Gzip COM pression我的Asp.Net 3.5网站,我怎么去有关启动?

I am currently on a hosted Virtual Server, I want to enable GZip compression for my Asp.Net 3.5 site, how do I go about starting?

我一直在使用'包装'JS文件尝试过,但他们不工作,我假设这是因为他们没有正确处理...?

I have tried using 'packed' JS files, but they don't work, I am assuming it's because they are not handled correctly...?

推荐答案

GZIP应该由IIS 来处理,你运行的是什么版本的IIS?

GZIP should be handled by IIS, what version of IIS are you running?

客户端负责询问该服务器在GZiped版本。服务器将寻找两件事,请求是http 1.1和接受编码的头:gzip的。一个简单的方法来寻找这些头是使用萤火

The client is responsible for asking the server for a GZiped version. The server will be looking for two things, the request is http 1.1, and a header of Accept-Encoding: gzip. An easy way to look for these headers is to use firebug

IIS6 - 的GZip可以通过IIS插件中启用。 <一href=\"http://www.microsoft.com/technet/prodtechnol/WindowsServer2003/Library/IIS/25d2170b-09c0-45fd-8da4-898cf9a7d568.mspx?mfr=true\">Microsofts MSDN主题Gzip已在IIS6随着

IIS6 - GZip can be enabled with the iis snap-in. Microsofts MSDN Topic On Gzip With IIS6

IIS7 - GZip压缩可以使用httpCom pression XML标记的尼克·贝拉尔迪的获取IIS 7对COM preSS的JavaScript

IIS7 - GZip can be enabled with the web.config using httpCompression xml tag Nick Berardi's Getting IIS 7 to Compress JavaScript

通过与缩小和包装JavaScript文件,您通过删除空白,缩短您的变量的名称递减的JavaScript的总规模。

By minifying and packing javascript files, your decreasing the total size of JavaScript by removing whitespace and shortening your variables names.

这篇关于CSS / JS GZip压缩的COM $ P $与Asp.Net pssion的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆