Boost logo

Boost-Commit :

Subject: [Boost-commit] svn:boost r64919 - website/public_html/beta/common/code
From: dnljms_at_[hidden]
Date: 2010-08-19 06:37:51


Author: danieljames
Date: 2010-08-19 06:37:50 EDT (Thu, 19 Aug 2010)
New Revision: 64919
URL: http://svn.boost.org/trac/boost/changeset/64919

Log:
Fix cache-control header.
Text files modified:
   website/public_html/beta/common/code/boost_archive.php | 8 ++++----
   1 files changed, 4 insertions(+), 4 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 2010-08-19 06:37:50 EDT (Thu, 19 Aug 2010)
@@ -124,7 +124,7 @@
 
         if ($expires) {
             header('Expires: '.date(DATE_RFC2822, strtotime($expires)));
- header('Cache-Control: '.strtotime($expires, 0)); // 30 days
+ header('Cache-Control: max-age='.strtotime($expires, 0)); // 30 days
         }
 
         // Note: this sets $params['content'] with either the content or an error
@@ -143,7 +143,7 @@
 
         if ($expires) {
             header('Expires: '.date(DATE_RFC2822, strtotime($expires)));
- header('Cache-Control: '.strtotime($expires, 0)); // 30 days
+ header('Cache-Control: max-age='.strtotime($expires, 0)); // 30 days
         }
 
         $params['content'] = file_get_contents($params['file']);
@@ -239,7 +239,7 @@
         default:
             if($expires) {
                 header('Expires: '.date(DATE_RFC2822, strtotime($expires)));
- header('Cache-Control: '.strtotime($expires, 0));
+ header('Cache-Control: max-age='.strtotime($expires, 0));
             }
     }
 
@@ -274,7 +274,7 @@
         default:
             if($expires) {
                 header('Expires: '.date(DATE_RFC2822, strtotime($expires)));
- header('Cache-Control: '.strtotime($expires, 0));
+ header('Cache-Control: max-age='.strtotime($expires, 0));
             }
     }
 


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