Gimp
04-05-2002, 04:03 PM
This is the first time I ever ask :) its been a real pain in the ass and I dont know whats the problem... I want to disable page caching because when i submit a form it shhould show a list of stuff.. but it remains the same until i refresh it .. i know it was done in vB and i tried to take that code but it still didnt help me.. here what i tried to put in the page that is being included at the beggining (like in vB global.php)
tried this:
Header("Cache-control: no-cache"); //for HTTP1.1
Header("Pragma: no-cache"); //for HTTP1.0
Header("Expires: 0");
and this
header("Expires: Mon, 26 Jul 1970 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); // always modified
header("Cache-Control: no-cache, must-revalidate, proxy-revalidate, max-age=0"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
and still i had to refresh the page to see the newly added item.
I hope someone who has more expirience in this will help me :)
Thanks. :bunny:
tried this:
Header("Cache-control: no-cache"); //for HTTP1.1
Header("Pragma: no-cache"); //for HTTP1.0
Header("Expires: 0");
and this
header("Expires: Mon, 26 Jul 1970 05:00:00 GMT"); // Date in the past
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . "GMT"); // always modified
header("Cache-Control: no-cache, must-revalidate, proxy-revalidate, max-age=0"); // HTTP/1.1
header("Pragma: no-cache"); // HTTP/1.0
and still i had to refresh the page to see the newly added item.
I hope someone who has more expirience in this will help me :)
Thanks. :bunny: