[LON-CAPA-cvs] cvs: loncom / loncapa_apache.conf /interface loncss.pm

raeburn raeburn@source.lon-capa.org
Tue, 31 Aug 2010 15:07:19 -0000


raeburn		Tue Aug 31 15:07:19 2010 EDT

  Modified files:              
    /loncom	loncapa_apache.conf 
    /loncom/interface	loncss.pm 
  Log:
  - For servers using SSL, user's browser will not use disk cache unless
    Cache-Control includes "public". (for Firefox 3, but not Firefox 2).
  
  
Index: loncom/loncapa_apache.conf
diff -u loncom/loncapa_apache.conf:1.198 loncom/loncapa_apache.conf:1.199
--- loncom/loncapa_apache.conf:1.198	Tue Aug 24 09:11:35 2010
+++ loncom/loncapa_apache.conf	Tue Aug 31 15:07:16 2010
@@ -1,7 +1,7 @@
 ##
 ## loncapa_apache.conf -- Apache HTTP LON-CAPA configuration file
 ##
-## $Id: loncapa_apache.conf,v 1.198 2010/08/24 09:11:35 wenzelju Exp $
+## $Id: loncapa_apache.conf,v 1.199 2010/08/31 15:07:16 raeburn Exp $
 ##
 
 #
@@ -59,6 +59,7 @@
 <LocationMatch "^(/adm/lonIcons|/adm/jQuery|/adm/jsMath|/res/adm/pages|/ckeditor)">
         ExpiresActive On
         ExpiresDefault "access plus 12 hours"
+        Header set Cache-Control "public, no-transform"
 </LocationMatch>
 
 <LocationMatch "^/+res.*">
Index: loncom/interface/loncss.pm
diff -u loncom/interface/loncss.pm:1.7 loncom/interface/loncss.pm:1.8
--- loncom/interface/loncss.pm:1.7	Tue Oct  2 01:10:27 2007
+++ loncom/interface/loncss.pm	Tue Aug 31 15:07:19 2010
@@ -1,7 +1,7 @@
 # The LearningOnline Network with CAPA
 # gerenates a lon-capa CSS response
 #
-# $Id: loncss.pm,v 1.7 2007/10/02 01:10:27 albertel Exp $
+# $Id: loncss.pm,v 1.8 2010/08/31 15:07:19 raeburn Exp $
 #
 # Copyright Michigan State University Board of Trustees
 #
@@ -47,7 +47,7 @@
     $r->content_type('text/css');
     my $date=strftime("%a, %d %b %Y %H:%M:%S GMT",gmtime(time+86400));
     $r->header_out("Expires" => $date);
-
+    $r->header_out->add("Cache-Control" =>  "public, no-transform");
     
     my $handle = &Apache::lonnet::check_for_valid_session($r);
     if ($handle ne '' ) {