Created
July 7, 2016 17:41
-
-
Save rdev5/7367d9c2d07ba3a274ef9006cd89180b to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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