I have a working ASP.Net web service that caches results using System.Web.HttpContext.Current.Cache (Insert and Get). For testing purposes, I show the time in the web service results.
On the same browser, it properly caches and doesn't refresh until the 1 minute expiration that I set.
If I run the same web service in another browser (even on same machine) it returns a DIFFERENT time and then that is cached properly per minute. The previous browser still shows its old results (until time expires).
Testing on iPhone with Safari does the same thing (different cached results than two other browsers).
Why are the cached results DIFFERENT PER BROWSER? I'm a bit new to caching, so I clearly am missing something here. I'm trying to cache results for EVERYONE, not just the same person on the same browser. I would expect the time returned to be the SAME for all users in any browser.
This is the code I run:
HttpContext.Current.Cache.Insert("GetIDList", sJSON, Nothing, DateTime.Now.AddMinutes(1), Cache.NoSlidingExpiration)
What am I missing?