Print Page | Close Window

Bypass cache in Internet Explorer

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=4624
Printed Date: 30 March 2026 at 10:06am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: Bypass cache in Internet Explorer
Posted By: jsebastien
Subject: Bypass cache in Internet Explorer
Date Posted: 30 July 2003 at 2:30pm
Hi,

I added the following piece of code at the end of a URL to bypass the cache of a page : &cachecommand=bypass . It worked great in Netscape but not in IE. Do you know a HTML or ASP function to bypass the stored pages in IE?

Thanks for your help!



Replies:
Posted By: b_bonnett
Date Posted: 30 July 2003 at 4:46pm

The following code makes sure that the page isn't cached:

'Ensure this page is not cached
Response.Buffer = True
Response.Expires = -1
Response.ExpiresAbsolute = Now() - 2
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "No-Store"

Regards,
Blair



-------------
Webmaster, http://www.planegallery.net/ - The Plane Gallery
Greetings From Christchurch


Posted By: jsebastien
Date Posted: 31 July 2003 at 8:51am
thanks a lot for your help!



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net