Is there a way to set default duration for Page Output Caching.
I want to have same duration across pages. Need not specify duration on each page.
Thanks
Ram
Is there a way to set default duration for Page Output Caching.
I want to have same duration across pages. Need not specify duration on each page.
Thanks
Ram
Page Output Caching : Duration
Narayan19
You can use the outputCacheProfiles element in your web.config, here's the msdn page detailing its usage:
http://msdn2.microsoft.com/en-us/library/ms228244.aspx
You'll still need to add the corresponding directive to each page you want to use the setting you specify there, but at least you'll be able to update the value in one place after that.
Hope that helps