Results 1 to 2 of 2
Thread: ASP Page caching issue (IE8)
Sep 9, 2011, 10:34 #1
- Join Date
- Sep 2010
- 0 Post(s)
- 0 Thread(s)
ASP Page caching issue (IE8)
On this page I also have the main navigation embedded as an include file.
Within this navigation I can select a user and bring up their activities on the calendar. The user link goes off to a 'handler.asp' page, creates a session with that users ID, then goes back to the calendar page.
When the page loads an ajax call is made to an XML page using that users ID stored in the session to populate the activity list. Then ajax parses the XML and loads it into the calendar.
--HERE'S THE ISSUE--
When using IE8, under Tools > Internet Options > General (Browsing History) > Settings if the "Check for newer versions..." is set to automatic, it will cache the calendar activities. In other words, I can click any user in the nav list I want but it will always show the activities of the first user.
If I set the browser's "Check for newer versions..." to "Every time I visit the page" there's no caching and everything works as expected.
The problem is that I can't ask every single person using this website to change their browser settings if they want the calendar to work properly.
I've tried adding this to the top of my ASP pages:
Response.CacheControl = "no-cache" Response.AddHeader "Pragma", "no-cache" Response.Expires = -1
I've also tried manually setting the meta tags "Pragma" and "Expires"
Nothing seems to work. Any suggestions?