Try our conversational search powered by Generative AI!

Setting httpCacheVaryByParams="*"



I want to set uutput cache varybyparam to * . i.e. httpCacheVaryByParams="*" instead of id,epslanguage.  To me it looks ok. Is there anything impact specific to EPiServer CMS 6 R2 that I should consider?



Jul 13, 2015 10:24
Should the below code in global.asax do the trick 

override string GetVaryByCustomString(HttpContext context, string custom) { return context.Request.RawUrl; }

in siteSetting


Jul 13, 2015 11:30

Hope this will be helpful



Jul 13, 2015 11:40

thanks K.

But I want varybyparam  *. My suggested solution works fine. I just want to know If there is any negavtive impact of my suggested solution? 

Jul 13, 2015 11:47
  • The primary impact I can think of is memory usage. By varying by "*" you may end up with many different versions of each page so its worth testing this to assess the overall impact.
  • Also output caching this heavily can cause some strange results for instance if you are searching (e.g. /search/?q=searchterm) and the site content changes. The search results may not update immediately which can be confusing for editors.


Jul 13, 2015 12:01

Cache Efficency cannot be guranted.unique identifier for a specific version of a page in a specific language (combination of the id and epslanguage), is cache key to make sure that each page INDIVIDUALLY have been rendered by ASPX Cache. 

You may also end up that unpublished or old versions of page have also been cached or same page have been cached multiple time.


Edited, Jul 13, 2015 12:17
* 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.