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.
精彩评论