Incompatibility, Output Caching beating Rewrite Rules

Topics: Troubleshooting
Apr 18, 2014 at 11:40 PM
Heya,
I'm trying to to use Output Caching and Rewrite Rules modules in tandem. I use rules to redirect non-www (http://domain.tld) to www (http://www.domain.tld) and I like to cache page output too. However when user requests non-www version it gets cached and with next hit he gets cached version and thus rewrite to www won't occur.

I've tried playing with route priority/duration for rewrite rules under caching, but I don't really know what I'm doing :).

Any idea how to set Output Caching to do it's magic after the Rewrite Rules redirect?
Coordinator
Apr 19, 2014 at 12:28 AM
Don't use the rewrite rules modules if you don't HAVE to. Please prefer IIS Rewrite Rules, and it will work magically with Output Cache.
Apr 19, 2014 at 12:43 AM
Wanted to at first, but my shared hosting probably doesn't have Url rewriting module installed, I get "Internal Server Error" when I add it and I'm not sure I can get them to :(. I'll try.