[prev in list] [next in list] [prev in thread] [next in thread]
List: lon-capa-cvs
Subject: [LON-CAPA-cvs] cvs: loncom /interface loncss.pm
From: raeburn <raeburn () source ! lon-capa ! org>
Date: 2011-05-27 21:53:41
Message-ID: cvsraeburn1306533221 () cvsserver
[Download RAW message or body]
raeburn Fri May 27 21:53:41 2011 EDT
Modified files:
/loncom/interface loncss.pm
Log:
- Response header generation that works with Apache 1.3 (RHEL4) and Apache 2.
Index: loncom/interface/loncss.pm
diff -u loncom/interface/loncss.pm:1.8 loncom/interface/loncss.pm:1.9
--- loncom/interface/loncss.pm:1.8 Tue Aug 31 15:07:19 2010
+++ loncom/interface/loncss.pm Fri May 27 21:53:41 2011
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# gerenates a lon-capa CSS response
#
-# $Id: loncss.pm,v 1.8 2010/08/31 15:07:19 raeburn Exp $
+# $Id: loncss.pm,v 1.9 2011/05/27 21:53:41 raeburn Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -47,7 +47,8 @@
$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");
+ $r->header_out("Cache-Control" => "public, no-transform");
+ $r->send_http_header;
my $handle = &Apache::lonnet::check_for_valid_session($r);
if ($handle ne '' ) {
_______________________________________________
LON-CAPA-cvs mailing list
LON-CAPA-cvs@mail.lon-capa.org
http://mail.lon-capa.org/mailman/listinfo/lon-capa-cvs
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic