Quantcast
Channel: All Forums
Viewing all articles
Browse latest Browse all 28058

URL Rewrite Module vs IIS Cache

$
0
0

Hi

I've built a custom rewrite provider, to dynamically rewrite friendly urls that will be passed to another handler. This provider handles its own cache for performance reasons. At this point everything is working well.  Due to the config system.webServer/serverRuntime (2 hits within 10 sec by default), IIS is caching the output and the provider is not evaluated for a short time for the same url, which is a problem since calling the provider in succession for the same URL is not always supposed to generate the same result since it's based on database content that may have changed between calls.

My rewrite config is set to :
system.webServer/rewrite/outboundRules/rewriteBeforeCache : True;

I've setted http-headers "cache-control" to "no-cache, no-store, must-revalidate"

I've also tried to disable the IIS cache at many level while searching for a clue, without effect :
system.net/requestCaching.defaultPolicyLevel : NoCacheNoStore
system.net/requestCaching.desableAllCaching : True;
system.webServer/caching.enable : False;
system.webServer/caching.enableKernalCache : False; 
system.web/caching/outputCache.enableFragmentCache : False; 
system.web/caching/outputCache.enableOutputCache : False; 

Is there a way to control/disable IIS caching before the rewriting rule evaluation ?

Thank you


Viewing all articles
Browse latest Browse all 28058

Trending Articles