I have an application running in IIS via an ISAPI extension with outputs JSON files based on the input URL (it works with a RESTful interface - the URLs are of the form http://domain/path/to/resource.json
).
The application works well but I am unable to get IIS Output Caching working for the files I am generating.
In my web.config I have:
<system.webServer>
...
<caching>
<profiles>
<add extension=".json" policy="CacheForTimePeriod" kernelCachePolicy="DontCache" duration="00:00:30" />
</profiles>
</caching>
</system.webServer>
I've also tried using *
but that doesn't work either.
Any ideas why this would not work? Thanks!