I can’t seem to get it to ‘work’. Perhaps I’m not even testing it correctly. I’ve got a <%= DateTime.Now.ToString() %> line in my aspx page. I’ve tried setting caching declarativly like this
<%@ OutputCache VaryByParam='SchoolId' Duration='180' Location='Server' NoStore='false' %>
I’ve also tried setting it programmatically via the Response.Cache object. The timestamp always changes.
The web.config originally didn’t have an outputCache section. I’ve added one that looks like
<outputCache enableOutputCache='true' enableFragmentCache='true' sendCacheControlHeader='true' omitVaryStar='false'/>
Always the timestamp changes. What do I try next?
ugh. The issue was a Response.Cache.SetCacheability(HttpCacheability.NoCache) in the Page_Load of a usercontrol buried 3 levels deep from the page. I appreciate the help, though.
-al