Skip to content

Commit

Permalink
TWEAK: Uses sendcacheheaders function instead of sending headers itself.
Browse files Browse the repository at this point in the history
git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@1166 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Sep 12, 2004
1 parent 1180262 commit 1d18ab7
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions admin/browse.php
Expand Up @@ -41,12 +41,7 @@
if (!isset($action)) {$action=returnglobal('action');}
if (!isset($order)) {$order=returnglobal('order');}

header("Expires: Mon, 26 Jul 1997 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-store, no-cache, must-revalidate"); // HTTP/1.1
header("Cache-Control: post-check=0, pre-check=0", false);
header("Pragma: no-cache"); // HTTP/1.0
sendcacheheaders();

//Select public language file
$query = "SELECT language FROM {$dbprefix}surveys WHERE sid=$sid";
Expand Down

0 comments on commit 1d18ab7

Please sign in to comment.