Search code examples
asp.netcachinghttpcontextitems

HttpContext.Current.Items reused?


I'm using HttpContext.Current.Items to make a Per-Request Cache Store. I'm experiencing strange problems because I'm hitting to many Cache entries over different http requests.

It seems that HttpContext.Current.Items is reused across multiple http requests. Is it normal?


Solution

  • It was my fault. I was saving HttpContext.Current.Items in a static variable...