I need to expire some pages.
As i know following lines should me enough:
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
Unfortunately it seems not to be because when i'm click on the back browser button instead to display me the Page Expired mesage the old page is loaded.
Any idea?
Page expiration
Moderator: General Moderators
- webfinearts
- Forum Newbie
- Posts: 12
- Joined: Tue Sep 30, 2003 12:02 pm
- Contact:
- webfinearts
- Forum Newbie
- Posts: 12
- Joined: Tue Sep 30, 2003 12:02 pm
- Contact:
Try these...
Code: Select all
<?php
// Date in the past
header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
// always modified
header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
// HTTP/1.1
header("Cache-Control: no-store, no-cache, must-revalidate");
header("Cache-Control: post-check=0, pre-check=0", false);
// HTTP/1.0
header("Pragma: no-cache");
?>- webfinearts
- Forum Newbie
- Posts: 12
- Joined: Tue Sep 30, 2003 12:02 pm
- Contact: