Re: [PHP] How to specify to browser to cache contents?

2002-09-29 Thread Jean-Christian Imbeault
Chris Shiflett wrote: > > Luckily, it doesn't matter too much where it is set, because you should > be able to set your own with PHP (I think PHP may set it actually when > you use PHP's sessions). First, try something simple: > > header("Cache-Control: no-cache"); I'll try that! But what I w

Re: [PHP] How to specify to browser to cache contents?

2002-09-29 Thread Chris Shiflett
Luckily, it doesn't matter too much where it is set, because you should be able to set your own with PHP (I think PHP may set it actually when you use PHP's sessions). First, try something simple: header("Cache-Control: no-cache"); See if that does the trick. Do you have any way of viewing the

Re: [PHP] How to specify to browser to cache contents?

2002-09-29 Thread Jean-Christian Imbeault
Chris Shiflett wrote: > > IE ignores the "no-store" directive of the Cache-Control header, and > this is the most common reason behind behavior such as you are > describing. Exactly as I was worrying ... > Get rid of "no-store" and just use "no-cache" instead to see if it > resolves the incon

Re: [PHP] How to specify to browser to cache contents?

2002-09-29 Thread Chris Shiflett
IE ignores the "no-store" directive of the Cache-Control header, and this is the most common reason behind behavior such as you are describing. Basically, because Netscape (and other browsers) adhere to the HTTP specification, it may appear as if they are misbehaving when it in fact quite the

Re: [PHP] How to specify to browser to cache contents?

2002-09-29 Thread Jean-Christian Imbeault
Justin French wrote: > > If there's a noticeable difference between two browsers, and you're > currently NOT setting any headers for caching, the blame will probably lie > in the preference setting of the browser, not in your code. I thought exactly the same thing before posting. So I made sure c

Re: [PHP] How to specify to browser to cache contents?

2002-09-29 Thread Justin French
If there's a noticeable difference between two browsers, and you're currently NOT setting any headers for caching, the blame will probably lie in the preference setting of the browser, not in your code. Justin French on 30/09/02 2:24 PM, Jean-Christian Imbeault ([EMAIL PROTECTED]) wrote: > Is

[PHP] How to specify to browser to cache contents?

2002-09-29 Thread Jean-Christian Imbeault
Is the a particular header() call or other setting I can use to tell the client browser to cache the contents of my php pages? (I am using Apache). It seems like my browser (N7) doesn't even cache the images on the pages even though those are static ... Jc -- PHP General Mailing List (http: