$include_dir="/home/hyper-archives/boost-commit/include"; include("$include_dir/msg-header.inc") ?>
Subject: [Boost-commit] svn:boost r64038 - website/public_html/beta/common/code
From: daniel_james_at_[hidden]
Date: 2010-07-15 04:18:44
Author: danieljames
Date: 2010-07-15 04:18:42 EDT (Thu, 15 Jul 2010)
New Revision: 64038
URL: http://svn.boost.org/trac/boost/changeset/64038
Log:
Only certain files should have far future expire dates.
Text files modified: 
   website/public_html/beta/common/code/boost_archive.php |    12 +++++++++++-                            
   1 files changed, 11 insertions(+), 1 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-07-15 04:18:42 EDT (Thu, 15 Jul 2010)
@@ -193,7 +193,17 @@
 
 function display_raw_file($unzip, $type) {
     header('Content-type: '.$type);
-    header('Expires: '.date(DATE_RFC2822, strtotime("+1 year")));
+    switch($type) {
+        case 'image/png':
+        case 'image/gif':
+        case 'image/jpeg':
+        case 'text/css':
+        case 'application/x-javascript':
+        case 'application/pdf':
+        case 'application/xml-dtd':
+            header('Expires: '.date(DATE_RFC2822, strtotime("+1 year")));
+            header('Cache-Control: max-age=31556926'); // A year, give or take a day.
+    }
 
     // Since we're not returning a HTTP error for non-existant files,
     // might as well not bother checking for the file