all groups > inetserver asp components > june 2003 >
You're in the

inetserver asp components

group:

Upstream proxy refresh problem.



Upstream proxy refresh problem. MAL
6/30/2003 4:51:15 PM
inetserver asp components: Hi

Like many others, I do not want browsers to cache certain pages. I have
added all the usual stuff like

<%
Response.Expires = 15
Response.ExpiresAbsolute = Now() - 2
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cachecontrol","private"
Response.AddHeader "Cache-Control", "must-revalidate"
Response.CacheControl = "no-cache"
%>

and

<META HTTP-EQUIV="expires"CONTENT="Wed, 03 Nov 1999 12:21:14 GMT">
<META HTTP-EQUIV="Pragma"CONTENT="no-cache">
<meta http-equiv="Cache-Control"Content="no-cache">

which work most of the time.

The problem is when a user connects to and upstream proxy server. The proxy
just serves up the same page and ignores the refresh request.

PLEASE could someone tell me how to force the proxy server to refresh and
overcome this. (It not my proxy server so I cant change its settings)

TIA

Mark

Re: Upstream proxy refresh problem. Adrian Forbes [ASP MVP]
7/2/2003 10:23:42 PM
If it is possible append random data to your urls.

So instead of getting page.asp get page.asp?refresh=somerandomdata

What I use is;

<a href="page.asp?refresh=<%=Server.URLEncode(Now())%>">click me</a>

[quoted text, click to view]

AddThis Social Bookmark Button