output cache in code behind issues

Hello, <BR><BR>I'm having some strange issues with setting page output cache in a code behind. The page is successfully caching, but it's completely ignoring the varyByParams property. <BR><BR>I'm setting the cache properties in the page_load should they be set somewhere else? <BR><BR>Here is the relevant code:<BR><BR>Page.Response.Cache.SetExpires(DateTime.Now.AddHou rs(1))<BR>Page.Response.Cache.SetCacheability(HttpCacheabili ty.Public)<BR>Page.Response.Cache.VaryByParams("siteID;pageLvlMap") = true<BR>Page.Response.Cache.SetValidUntilExpires(True)<BR>Page.Response.AddCacheItemDependency(siteID & ";" & pageLvlMap)<BR><BR>Thanks in advance for any help on the subject,<BR><BR>])ry
 
Back
Top