One rather brute force way to get round this is to append a unique (per-session
at least) id to the querystring of each page, which means that the page will be
requested from the server rather than the cache. I believe this works in Opera
as well as other browsers.
There is more to cache-control and expiring pages than meets the eye, do a
search on it or read the rfc. Ultimately it is down to how user agents
interpret those commands, and there is no substitute for testing...
Mark
-Original Message-
From: William Stokes [mailto:[EMAIL PROTECTED]
Sent: 26 April 2005 09:55
To: php-general@lists.php.net
Subject: [PHP] Re: Cache control
Talkin' to myself...
does this solve the issue?
header (Cache-Control: no-cache);
-Will
William Stokes [EMAIL PROTECTED] kirjoitti
viestissä:[EMAIL PROTECTED]
Hello,
I have an web application that checks users rights to specific parts
of
the apllication at the beginning of each page. However I noticed, with the
help of Jason Barnett, that opera caches pages locally and the users
rights check fails. The application works fine with Firefox and IE. So I
think I need to prevent the pages from beeing cached. How this can be
done? I'm totally inexperinced with this stuff.
The authentication is a 2 part task. First the username and password
are
checked and the user is given or denied access. This works ok with every
browser. But once inside the user access rights check to differt parts of
the application fails because of the Opera cache.
Thanks
-Will
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Gamma Global : Suppliers of HPCompaq, IBM, Acer, EPI, APC, Cyclades, D-Link,
Cisco, Sun Microsystems, 3Com
GAMMA GLOBAL (UK) LTD IS A RECOGNISED 'INVESTOR IN PEOPLE' AND AN 'ISO 9001
2000' REGISTERED COMPANY
**
CONFIDENTIALITY NOTICE:
This Email is confidential and may also be privileged. If you are not the
intended recipient, please notify the sender IMMEDIATELY; you should not
copy the email or use it for any purpose or disclose its contents to any
other person.
GENERAL STATEMENT:
Any statements made, or intentions expressed in this communication may not
necessarily reflect the view of Gamma Global (UK) Ltd. Be advised that no
content
herein may be held binding upon Gamma Global (UK) Ltd or any associated company
unless confirmed by the issuance of a formal contractual document or
Purchase Order, subject to our Terms and Conditions available from
http://www.gammaglobal.com
EOE
**
**
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php