View Complete Thread
  • Re: URL Rewrite Outbound Rules w/ Compression

    Mar 06, 2013 04:52 PM|richma|LINK

    I am assuming you are referring to the followings stepos, reposting in case.

    The one I would double check is the module order

    For outbound you want Dynamic Compression Above . URLRewrites as they are processed in revese order on the way out.

    Outbound rewriting can be used together with IIS dynamic compression by using the following workaround:

    1. Set the LogRewrittenUrlEnabled registry key:reg add HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp\Rewrite /v LogRewrittenUrlEnabled /t REG_DWORD /d 0
    2. Make sure that dynamicCompressionBeforeCache property is set to false for the /system.webServer/urlCompression configuration element.
    3. Re-order the IIS modules to have URL Rewrite module (RewriteModule) run before Dynamic Compression module (DynamicCompressionModule). In the IIS Manager user interface in the modules's ordered view the Dynamic Compression module should be above the URL Rewrite module.

     

    To trobuleshoot use Failed Request Tracing and it will tell you if the Compression Module is being invoked before UrlRewrite.