JS,Images and CSS getting intercepted by HTTPModule

后端 未结 2 508
天命终不由人
天命终不由人 2021-01-01 02:52

I have a simple HTTPModule which does some custom session state management.

public void Init(HttpApplication context)
        {
            context.AcquireRe         


        
2条回答
  •  佛祖请我去吃肉
    2021-01-01 03:04

    Looks like there is a way to do it

    http://learn.iis.net/page.aspx/121/iis-70-modules-overview/#Disabling

    setting preCondition="managedHandler" and would do the trick

    note to self: http://code.google.com/p/talifun-web/wiki/StaticFileHandler need to explore this StaticFileHandler

    references:

    http://learn.iis.net/page.aspx/244/how-to-take-advantage-of-the-iis7-integrated-pipeline/

    Exclude HttpModule from running for static content on IIS7

    BUG: IIS7 managed requests

    http://msdn.microsoft.com/en-us/library/bya7fh0a.aspx

提交回复
热议问题