G
Girish
I have a usercontrol showing some generic information across multiple
screens. As per MS, caching is disabled by default so i didn't put a
@OutputCache directive in my control. I found the control being cached at
several occassions so was forced to put some code to disable caching
explicitely. Here are the lines of code i put to stop the control from being
cached:
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Expires = -1
Response.Cache.SetNoStore()
But even now i see instances where the data on the control seems to be
caching and users see each other's data on this control. Can anyone please
help me find if i am doing something wrong here.
screens. As per MS, caching is disabled by default so i didn't put a
@OutputCache directive in my control. I found the control being cached at
several occassions so was forced to put some code to disable caching
explicitely. Here are the lines of code i put to stop the control from being
cached:
Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Expires = -1
Response.Cache.SetNoStore()
But even now i see instances where the data on the control seems to be
caching and users see each other's data on this control. Can anyone please
help me find if i am doing something wrong here.