Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r75678 - website/public_html/beta/common/code
From: dnljms_at_[hidden]
Date: 2011-11-26 14:17:37


Author: danieljames
Date: 2011-11-26 14:17:36 EST (Sat, 26 Nov 2011)
New Revision: 75678
URL: http://svn.boost.org/trac/boost/changeset/75678

Log:
Website: Short expiry date for redirects.
Text files modified:
   website/public_html/beta/common/code/boost_archive.php | 7 ++++---
   1 files changed, 4 insertions(+), 3 deletions(-)

Modified: website/public_html/beta/common/code/boost_archive.php
==============================================================================
--- website/public_html/beta/common/code/boost_archive.php (original)
+++ website/public_html/beta/common/code/boost_archive.php 2011-11-26 14:17:36 EST (Sat, 26 Nov 2011)
@@ -150,9 +150,6 @@
             display_raw_file($params, $type);
     }
     else {
- if (!http_headers('text/html', filemtime($check_file), $expires))
- return;
-
         // Read file from hard drive or zipfile
     
         // Note: this sets $params['content'] with either the content or an error
@@ -166,12 +163,16 @@
     
         if($type == 'text/html') {
             if($redirect = detect_redirect($params['content'])) {
+ http_headers('text/html', null, "+1 day");
                 header("Location: $redirect", TRUE, 301);
                 if($_SERVER['REQUEST_METHOD'] != 'HEAD') echo $params['content'];
                 return;
             }
         }
     
+ if (!http_headers('text/html', filemtime($check_file), $expires))
+ return;
+
         // Finally process the file and display it.
     
         if($_SERVER['REQUEST_METHOD'] != 'HEAD') {


Boost-Commit list run by bdawes at acm.org, david.abrahams at rcn.com, gregod at cs.rpi.edu, cpdaniel at pacbell.net, john at johnmaddock.co.uk