Quantcast
Channel: URL Rewrite Module
Viewing all articles
Browse latest Browse all 2482

Kernel cache fails with rewrite rule to strip Query parameters

$
0
0

Problem: IIS marks URL as cache not worthy and Kernel cache stops working.

To Reproduce:

1. enable Kernel cache

2. add Following rule to strip query parameter in to web.config

<rule name="strip_querystring" stopProcessing="true">
<match url="(.*)" />
<action type="Rewrite" url="{R:1}" appendQueryString="false" />
</rule>

3. monitor Kernel cache using perfmon

4. run simple curl command that will generate unique query parameter every second  

while true; do curl -X GET   http://URL?test=$(date +'%I%M%S ') > test.html; done

What happens:

Kernel cache works for a few requests and then it stops working for a given URL


Viewing all articles
Browse latest Browse all 2482

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>