Proxy Server Cache (Full Version)

All Forums >> [Web Development] >> Server Issues



Message


William Lee -> Proxy Server Cache (3/2/2002 14:45:57)

How do I prevent caching of web pages by proxy servers.

I am able to do this for my asp pages. But for static HTML pages, what needs to be put at the meta tags?

I am thinking of renaming all my pages with .asp just to facilitate no proxy cache. However, some FP Components don't work on pages with .asp extensions.



William Lee




Gil -> RE: Proxy Server Cache (3/2/2002 15:07:15)

<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
Will work for "most" proxy servers

Gil Harvey
The Host Factory
Resellers are our Specialty
Find a Web Professional





William Lee -> RE: Proxy Server Cache (3/2/2002 15:13:42)

quote:

<meta HTTP-EQUIV="Pragma" CONTENT="no-cache">
Will work for "most" proxy servers

Gil Harvey
The Host Factory
Resellers are our Specialty
Find a Web Professional





Is that it? I thought this is only for browser cache...I even had J-Bot no cache component but seems I can refresh the browser multiple times but the pages fetched are not the fresh modified pages.
I'll try again.


William Lee




Gil -> RE: Proxy Server Cache (3/2/2002 15:42:52)

That's it - take a look here: http://vancouver-webpages.com/proxy.html

or here:
http://www.w3.org/Jigsaw/User/api/w3c.www.http.HttpCacheControl.html

or if your a ASP person:

<%
Response.Expires = 15
Response.ExpiresAbsolute = Now() - 2
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.CacheControl = "private"
%>

You can keep it in a file called nocache.inc on my root and just include it wherever you need it like this:

<!-- #include file="nocache.inc" -->


Gil Harvey
The Host Factory
Resellers are our Specialty
Find a Web Professional





Page: [1]

Valid CSS!




Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI
0.0625