Data Pages Out of Date

K

Kevin

Have done a small database page for use with MSDE. Problem is when new data
entered the browser seems to store an old version and shows the old data. Is
there any way to force a browser to re-load the page on each visit?
 
K

Kevin

Am using
Response.Expires = 0
Response.CacheControl = "Private"

Assumed was browser cache??

Kevin
 
M

MD Websunlimited

Kevin,

Neither of those will affect a Firewall cache system. Do you have a fire wall cache?
 
K

Kevin

No - IE6 via a 3COM ISDN router, that uses NAT.

MD Websunlimited said:
Kevin,

Neither of those will affect a Firewall cache system. Do you have a fire wall cache?
 
J

Jon Spivey

Hi,
you could try
<%
Response.ExpiresAbsolute = #2000-01-01#
Response.AddHeader "pragma", "no-cache"
Response.AddHeader "cache-control", "private, no-cache, must-revalidate"
%>

This is about the best you can do

Jon
Microsoft MVP - FP
 
M

MD Websunlimited

If the ASP page is producing data then it should display the new page results.
 
K

Kevin

Thanks Mike

I know it should - but please tell IE6 that!! :)

Suggestion by Jon to add this:-
Response.ExpiresAbsolute = #2000-01-01#
Response.AddHeader "pragma", "no-cache"
Response.AddHeader "cache-control", "private, no-cache, must-revalidate"

Seems to be helping - so guess is caching in IE6

Kevin
 
M

MD Websunlimited

Okay.


Kevin said:
Thanks Mike

I know it should - but please tell IE6 that!! :)

Suggestion by Jon to add this:-
Response.ExpiresAbsolute = #2000-01-01#
Response.AddHeader "pragma", "no-cache"
Response.AddHeader "cache-control", "private, no-cache, must-revalidate"

Seems to be helping - so guess is caching in IE6

Kevin
 
Top