Re: caching
| From: | Jon Yaggie | Date: | Thu, 05 Jul 2001 05:30:58 +0000 |
| Subject: | Re: caching | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-56261@lists.php.net to get a copy of this message | ||
It seems still not to work.
i have tried all the header options mentioned. adding a query string is out of the option I am using
javascript and it dont like that stuff. and my browser still caches everything and drives me nuts.
maybe i am putting it in the wrong file? but i really cant imagine what other file it should be
in. the set up is like this.
I have button.php which is just a function that creates and image and save it to a file. and then
mypage.php that uses this function to generate a menu and then one include to header.html which
contains the actual menu and calls to the images saved. I placed the headers at the top of
mypage.php. where else could i put them? and my browser still caches unless i conpletely turn off
caching.
What am i doing wrong?
Thank You,
Jon Yaggie
www.design-monster.com
And they were singing . . .
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
101 little bugs in the code . . .'
And it continued until they reached 0
this code works good...
Place this code at the top of the files where you want then to always
refresh i.e. no cache
header ("Pragma: no-cache");
header ("Cache-Control: no-cache, must-revalidate, max_age=0");
header ("Expires: 0");
Have fun
Kevin
----- Original Message -----
From: "Jon Yaggie" <dmsales@design-monster.com>
To: <php-general@lists.php.net>
Sent: Wednesday, May 30, 2001 4:36 PM
Subject: [PHP] caching
Ok I am dynamically creating images. my problem is my browser is caching
the images (or at least half ot them - i see no particular system to which)
i have no idea how to stop this. i have tried using the header
Cache-Control: no-cahe However it seems to have no helped. maybe i am
using it wrongly? is there another method i can clear the browser cache?
Thank You,
Jon Yaggie
www.design-monster.com
And they were singing . . .
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
101 little bugs in the code . . .'
And it continued until they reached 0
this code works good...
Place this code at the top of the files where you want then to always
refresh i.e. no cache
header ("Pragma: no-cache");
header ("Cache-Control: no-cache, must-revalidate, max_age=0");
header ("Expires: 0");
Have fun
Kevin
----- Original Message -----
From: "Jon Yaggie" <dmsales@design-monster.com>
To: <php-general@lists.php.net>
Sent: Wednesday, May 30, 2001 4:36 PM
Subject: [PHP] caching
Ok I am dynamically creating images. my problem is my browser is caching
the images (or at least half ot them - i see no particular system to which)
i have no idea how to stop this. i have tried using the header
Cache-Control: no-cahe However it seems to have no helped. maybe i am
using it wrongly? is there another method i can clear the browser cache?
Thank You,
Jon Yaggie
www.design-monster.com
And they were singing . . .
'100 little bugs in the code
100 bugs in the code
fix one bug, compile it again
101 little bugs in the code
101 little bugs in the code . . .'
And it continued until they reached 0