web.config caching differences
Posted
by
Ivanhoe123
on Server Fault
See other posts from Server Fault
or by Ivanhoe123
Published on 2012-11-16T21:46:40Z
Indexed on
2012/11/16
23:02 UTC
Read the original article
Hit count: 188
What are the differences between these two approaches of caching (set up through web.config
file)?
<caching>
<profiles>
<add extension=".php" policy="DisableCache" kernelCachePolicy="DisableCache" />
<add extension=".html" policy="CacheForTimePeriod" kernelCachePolicy="CacheForTimePeriod" duration="7:00:00" />
</profiles>
</caching>
and:
<staticContent>
<clientCache cacheControlMode="UseMaxAge" cacheControlMaxAge="7.00:00:00" />
</staticContent>
If the first one has img/css/js extensions added, would both work the same way?
Thank you!
© Server Fault or respective owner