473,408 Members | 2,477 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,408 software developers and data experts.

clearing form/page cache

In asp we have "Response.Expires = 0" and I've tried:
HttpResponse.RemoveOutputCacheItem("page location")
But I can't get the page to display new. This is a problem if the data is
changed and the page is revisted. I find it hard to believe that adding a
bogus random value to the url is the only method to avoid this?

If I press the refresh button on my IE6 browser the page displays the
correct data. How is this accomplished?

Thanx.
Nov 19 '05 #1
6 5593
I've found this:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

and I think it will work. But still wonder if there is a more programmic way
to clear.

"Chris" wrote:
In asp we have "Response.Expires = 0" and I've tried:
HttpResponse.RemoveOutputCacheItem("page location")
But I can't get the page to display new. This is a problem if the data is
changed and the page is revisted. I find it hard to believe that adding a
bogus random value to the url is the only method to avoid this?

If I press the refresh button on my IE6 browser the page displays the
correct data. How is this accomplished?

Thanx.

Nov 19 '05 #2
I've found this:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

and I think it will work. But still wonder if there is a more programmic way
to clear.

"Chris" wrote:
In asp we have "Response.Expires = 0" and I've tried:
HttpResponse.RemoveOutputCacheItem("page location")
But I can't get the page to display new. This is a problem if the data is
changed and the page is revisted. I find it hard to believe that adding a
bogus random value to the url is the only method to avoid this?

If I press the refresh button on my IE6 browser the page displays the
correct data. How is this accomplished?

Thanx.

Nov 19 '05 #3
Chris, if you search out here on "no-cache" you'll see a bunch of discussion.
I came across the following a few months ago which works for me
(unfortunately I didn't keep the source to credit):

response.expires = 0
response.cache.setnostore()
response.appendheader("Pragma", "no-cache")

hth,

Bill

"Chris" wrote:
I've found this:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

and I think it will work. But still wonder if there is a more programmic way
to clear.

"Chris" wrote:
In asp we have "Response.Expires = 0" and I've tried:
HttpResponse.RemoveOutputCacheItem("page location")
But I can't get the page to display new. This is a problem if the data is
changed and the page is revisted. I find it hard to believe that adding a
bogus random value to the url is the only method to avoid this?

If I press the refresh button on my IE6 browser the page displays the
correct data. How is this accomplished?

Thanx.

Nov 19 '05 #4
Chris, if you search out here on "no-cache" you'll see a bunch of discussion.
I came across the following a few months ago which works for me
(unfortunately I didn't keep the source to credit):

response.expires = 0
response.cache.setnostore()
response.appendheader("Pragma", "no-cache")

hth,

Bill

"Chris" wrote:
I've found this:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

and I think it will work. But still wonder if there is a more programmic way
to clear.

"Chris" wrote:
In asp we have "Response.Expires = 0" and I've tried:
HttpResponse.RemoveOutputCacheItem("page location")
But I can't get the page to display new. This is a problem if the data is
changed and the page is revisted. I find it hard to believe that adding a
bogus random value to the url is the only method to avoid this?

If I press the refresh button on my IE6 browser the page displays the
correct data. How is this accomplished?

Thanx.

Nov 19 '05 #5
Thanx, I did and I wouldn't say a bunch. I always try to first search
postings and the web. I missed the tag <Meta..> reference though :).
As I mentioned, I haven't been able to get the good ole reponse.expires = 0
to work. I haven't tried though "response.cache.setnostore()", your last is
really the Meta tag. I'll give the 2nd a try. I couldn't get:
HttpResponse.RemoveOutputCacheItem("page location")
to work either and that was on another post?????

thanx :)

"Bill Borg" wrote:
Chris, if you search out here on "no-cache" you'll see a bunch of discussion.
I came across the following a few months ago which works for me
(unfortunately I didn't keep the source to credit):

response.expires = 0
response.cache.setnostore()
response.appendheader("Pragma", "no-cache")

hth,

Bill

"Chris" wrote:
I've found this:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

and I think it will work. But still wonder if there is a more programmic way
to clear.

"Chris" wrote:
In asp we have "Response.Expires = 0" and I've tried:
HttpResponse.RemoveOutputCacheItem("page location")
But I can't get the page to display new. This is a problem if the data is
changed and the page is revisted. I find it hard to believe that adding a
bogus random value to the url is the only method to avoid this?

If I press the refresh button on my IE6 browser the page displays the
correct data. How is this accomplished?

Thanx.

Nov 19 '05 #6
Thanx, I did and I wouldn't say a bunch. I always try to first search
postings and the web. I missed the tag <Meta..> reference though :).
As I mentioned, I haven't been able to get the good ole reponse.expires = 0
to work. I haven't tried though "response.cache.setnostore()", your last is
really the Meta tag. I'll give the 2nd a try. I couldn't get:
HttpResponse.RemoveOutputCacheItem("page location")
to work either and that was on another post?????

thanx :)

"Bill Borg" wrote:
Chris, if you search out here on "no-cache" you'll see a bunch of discussion.
I came across the following a few months ago which works for me
(unfortunately I didn't keep the source to credit):

response.expires = 0
response.cache.setnostore()
response.appendheader("Pragma", "no-cache")

hth,

Bill

"Chris" wrote:
I've found this:
<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

and I think it will work. But still wonder if there is a more programmic way
to clear.

"Chris" wrote:
In asp we have "Response.Expires = 0" and I've tried:
HttpResponse.RemoveOutputCacheItem("page location")
But I can't get the page to display new. This is a problem if the data is
changed and the page is revisted. I find it hard to believe that adding a
bogus random value to the url is the only method to avoid this?

If I press the refresh button on my IE6 browser the page displays the
correct data. How is this accomplished?

Thanx.

Nov 19 '05 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Stephen | last post by:
I've found this code to help me with my session logout problem. Before I had a session and when I logged out everything worked fine and I was brought to the log out page but when i clicked the back...
3
by: Q | last post by:
Hello, I have composed an xhtml file and corresponding css file with styles. It works OK. The problem is that I change my xhtml and css files and cannot see these changs with my browser. To see...
0
by: Robert via DotNetMonster.com | last post by:
I'm doing URL rewriting for my web site, so there is only a single phyiscal web page (Index.aspx). All other web pages I construct dynamically. This is all working fine, but I want the ability to...
6
by: JJ_377 | last post by:
In a "Save and Quit" button on my web app form (aspx), I have the following code that is supposed to clear a session variable (an user id) and redirect to a logon page: Session.Clear()...
0
by: PD | last post by:
I am trying to stream out a PDF file via the response object and when I execute the code it always brings up the first document that I pulled up.Even when I step through the code, I can see the new...
0
by: dimpy | last post by:
Hi everyone, I am using some big size data adapters to fill datasets to be sent to a web service. Now every time i get an error in datatype or constraints violations while filling the dataset, I...
0
by: negmat | last post by:
Hello everyone, I have the following question: I am aware that the objects currently in the cache can be viewed by issuing the following command: SELECT * FROM master.dbo.Syscacheobjects ...
1
by: Anshul | last post by:
Hello, I'm using an Iframe to display user's detail if logged in and login form if logged out. Its working very fine in Mozilla but not working in IE. Cookies are getting destroyed but still...
17
by: axlq | last post by:
Situation: User submits a form, gets a page returned. User clicks the "reload button." Normal result: Browser asks to confirm re-submitting of the form data. That's not what I want. What I...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.