Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rdev5/7367d9c2d07ba3a274ef9006cd89180b to your computer and use it in GitHub Desktop.
Save rdev5/7367d9c2d07ba3a274ef9006cd89180b to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="UTF-8"?>
<configuration>
<system.webServer>
<!--
Configuration Summary:
- Use faster kernel-mode caching for static assets (i.e. images, scripts, stylesheets, HTML), only refreshing them if the file itself changes.
- Use user-mode caching (varyByHeaders), expiring after 5 minutes (default cache worthiness: 2 hits within 10s)
-->
<caching enabled="true" enableKernelCache="true">
<profiles>
<add extension=".png" kernelCachePolicy="CacheUntilChange" />
<add extension=".gif" kernelCachePolicy="CacheUntilChange" />
<add extension=".jpg" kernelCachePolicy="CacheUntilChange" />
<add extension=".jpeg" kernelCachePolicy="CacheUntilChange" />
<add extension=".js" kernelCachePolicy="CacheUntilChange" />
<add extension=".css" kernelCachePolicy="CacheUntilChange" />
<add extension=".html" kernelCachePolicy="CacheUntilChange" />
<add extension=".php" policy="CacheForTimePeriod" duration="00:05:00" varyByQueryString="*" varyByHeaders="Cookie" />
</profiles>
</caching>
<!-- ... -->
<system.webServer>
<configuration>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment