开发者

Can Asp.net HTTP Compression affect pages in specific sub directory

开发者 https://www.devze.com 2023-03-27 06:24 出处:网络
I have a web application that want to enable HTTP compression on specific pages in a specific sub directory.How is it possible?

I have a web application that want to enable HTTP compression on specific pages in a specific sub directory.How is it possible?

Compression in Asp.net 4 has conflict with Asp.net Ajax(*.axd files) like asp.net 2?

t开发者_Go百科hanks


According to httpCompression Element you can locate config file with this element in:

Machine.config
ApplicationHost.config
Root application Web.config
Application Web.config
Directory Web.config

So you should create right web.config and move one to desired directory.

UPDATE

If you wanna do it yourself to see ASP.NET GZip Encoding Caveats - it's good article. I suppose you have to write HttpModule that will decide - need compression or not.

0

精彩评论

暂无评论...
验证码 换一张
取 消