volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

volume_up

A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More

EPiServer Caching

Hi We are running 4.61 and trying to use EPiServer caching. But we have some problems/issues with the caching part or rather the part where we don't want to use EPiServer cache. Web.config settings I override the GetVaryByCustomString function i global.asax I want to be able to don't cache pages for users how has a cookie called "cachethis" with the value "false"! I tried to use the following lines in the function GetVaryByCustomString if (Request.Cookies["cachethis"].ToString() == "false"){ Response.Cache.SetExpires(DateTime.Now()); Response.Cache.SetCacheability(HttpCacheability.NoCache);} But the item is still in the cached. How can I avoid to cache some pages depending on the parameters? /Jörgen
#17581
Oct 31, 2006 17:40
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.