--- Received from FPU.WHITES1 799 3703                       23-11-01 14:36

  -> [EMAIL PROTECTED]

Bizarre.

I always send both those headers at the beginning of the page and it has
always worked fine.

<?php
    header("Pragma: no-cache");
    header("Cache-Control: no-cache, must-revalidate");
?>

-Steve

---------------------------------------------------------------------------

From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Date: Fri, 23 Nov 2001 15:29:32 +0100
Subject: [PHP-WIN] no cache?

Hi y'all

I'm using the following script to send headers preventing browsers from
caching my page (since the page is supposed to be dynamic). But it seems as
none of the headers work. The only thing working right now is setting your
browser to never cache pages (and I think that's a bit too much to ask from
every person logging on). So, can anybody help me?

function no_cache() {
  global $SERVER_PROTOCOL;
  if ($SERVER_PROTOCOL == 'HTTP/1.0') {
    header("Pragma: no-cache"); // HTTP/1.0
  } else {
    header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
  }


------------------------
Samba Sidibeh
Systemutvecklare
SYSteam Udac AB
Storgatan 19, Box 174, 751 04 Uppsala SWEDEN
Tel direkt: 018-67 81 35
Tel vxl: 018-67 80 00  Fax: 018-51 66 00
Hemsida: www.systeam.se, www.udac.se
SYSteam Udac ingår i SYSteamkoncernen.

This e-mail may contain confidential information and/or copyright
material. This e-mail is intended for the use of the addressee
only. Any unauthorised use may be unlawful.

If you receive this e-mail by mistake please advise the sender
immediately by using the reply facility in your e-mail software.

Friends Provident Marketing Group consists of the following
companies:

Friends Provident Life and Pensions Limited.
Registered number 4096141.
Friends' Provident Unit Trust Managers Limited.
Registered number 970641
FP Life Assurance Limited.
Registered number 782698
Friends Provident Pensions Limited.
Registered number 475201
Friends Ivory & Sime Managed Pensions Funds Limited.
Registered number 1020044
Registered and Head Office of each of the above companies is at Pixham End,
Dorking, Surrey RH4 1QA.
Registered in England. Incorporated companies limited by shares.
Ivory & Sime Trustlink Limited. Registered number 151198
Registered and Head Office: One Charlotte Square, Edinburgh EH2
4DZ.  Registered in Scotland. Incorporated company limited by
shares.

Companies within this Group transact life assurance, pension,
permanent health, unit trust and investment trust business

All are regulated by the Personal Investment Authority.
Friends' Provident Unit Trust Managers Limited is also regulated
by IMRO.

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to