简体   繁体   English

Urlrewrite页面上的IIS 6压缩不起作用

[英]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. 我正在开发一个asp.net网站(运行.net 3.5 SP 1),并使用UrlRewriter.Net( http://urlrewriter.net/ )进行urlrewriting。

The site is hostet on a Windows 2003 server with all servicepacks and so forth. 该站点是带有所有Service Pack的Windows 2003服务器上的hostet。

It runs IIS 6. 它运行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. 为了启用url重写,我为*设置了通配符处理程序,这意味着所有请求都通过asp.net引擎发送。

I've also enabled IIS compression feature - this works fine when I use the non-rewritten urls. 我还启用了IIS压缩功能-当我使用未重写的url时,此功能可以正常工作。 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. 我已将aspx,ashx和asmx作为扩展名添加到metabase.xml,并设置了适当的压缩级别(9),依此类推。

The rewritten pages have .htm extension, so it shouldn't be because the extension is wrong. 重写的页面具有.htm扩展名,所以不应该是因为扩展名错误。

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) 如果问题是压缩是在管道中的错误时间发生的,那么我希望它也不适用于.aspx(因为所有内容都是通过asp.net处理程序发送的)

That being said, I guess it could handle .aspx earlier in the pipeline, as I believe the wildcard handler functions as a "last resort". 话虽如此,我想它可以在管道中更早地处理.aspx,因为我相信通配符处理程序是“最后的手段”。 Unfortunately on IIS 6 there is no changing the priority of handlers :-( 不幸的是,在IIS 6上,没有更改处理程序的优先级:-(

I guess I'll have to ask our administrator for a Windows 2008 server with IIS 7. 我猜我将不得不向管理员询问带有IIS 7的Windows 2008服务器。

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM