简体   繁体   中英

IIS 6 compression on Urlrewritten pages doesn't work

I'm developing a asp.net site (running .net 3.5 SP 1) and using UrlRewriter.Net ( http://urlrewriter.net/ ) for urlrewriting.

The site is hostet on a Windows 2003 server with all servicepacks and so forth.

It runs IIS 6.

In order to enable url rewriting I've setup a wildcard handler for *, which means all requests are sent through the asp.net engine.

I've also enabled IIS compression feature - this works fine when I use the non-rewritten urls. However it doesn't compress the rewritten pages.

I've added aspx, ashx and asmx as extensions to the metabase.xml, and set the proper compression level (9), etc.

The rewritten pages have .htm extension, so it shouldn't be because the extension is wrong.

Any ideas why this doesn't work ?

可能由于通配符,IIS将请求发送到ASP.NET,后者进一步处理页面生成等。压缩发生在管道的后期,因此被绕过了...

Unfortunately I haven't enough rep to leave comments.

If the issue is that compressions happens at the wrong time in the pipeline, I'd expect it didn't work for .aspx either (since everything is sent through the asp.net handler)

That being said, I guess it could handle .aspx earlier in the pipeline, as I believe the wildcard handler functions as a "last resort". Unfortunately on IIS 6 there is no changing the priority of handlers :-(

I guess I'll have to ask our administrator for a Windows 2008 server with IIS 7.

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