View Full Version : How to make your php page non Proxy cacheable
certify
Wed 12th Jun '02, 8:58am
What are the methods?
scoutt
Wed 12th Jun '02, 1:00pm
not sure I understand. proxy cacheable?
Kaizen
Wed 12th Jun '02, 1:26pm
I think certify means "so when a user visits the page it is always taken from the server and a cached version is not shown instead".
Am I right ?
If I am, I think these headers (in html) will do the trick;
<!-- no cache headers -->
<meta http-equiv="Pragma" content="no-cache">
<meta http-equiv="no-cache">
<meta http-equiv="Expires" content="-1">
<meta http-equiv="Cache-Control" content="no-cache">
<!-- end no cache headers -->
scoutt
Wed 12th Jun '02, 5:32pm
that is what I was thinking, but wasn't sure. the only problem with that way is that progma is Netscape only and IE will not recognise it.
Gramphos
Wed 12th Jun '02, 5:43pm
header("Pragma: no-cach");
There are other HTTP headers you can use, like setting the expiredate to 0 or anyting. I just don't remember that right now. Most browsers should settle with that one.
certify
Tue 18th Jun '02, 2:50am
Thanks. :)
The Prohacker
Tue 18th Jun '02, 3:57am
And even more about headers:P
http://www.php.net/manual/en/function.header.php
header("Cache-Control: no-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
etron_neo
Wed 19th Jun '02, 7:10am
how about when the page is dealing with session....
vBulletin® v3.8.0 Release Candidate 1, Copyright ©2000-2008, Jelsoft Enterprises Ltd.