1: <staticFile expirationTime="12:0:0" />
1: <staticContent>
2: <clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="1.00:00:00">clientCache>
3: staticContent>
What's even better in IIS 7 is that you can add profiles for kernel caching (and output caching for that matter). This section adds kernel caching on often requested files for a short period of time, but remember that this setting will affect ALL content delivered from IIS including files from a VPP-folder:
1: <caching>
2: <profiles>
3: <add extension=".gif" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" />
4: <add extension=".png" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" />
5: <add extension=".js" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" />
6: <add extension=".css" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" />
7: <add extension=".jpg" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" />
8: <add extension=".jpeg" policy="DontCache" kernelCachePolicy="CacheUntilChange" duration="0.00:01:00" location="Any" />
9: profiles>
10: caching>

0 comments:
Post a Comment