[LON-CAPA-cvs] cvs: loncom /xml lonxml.pm
albertel
lon-capa-cvs@mail.lon-capa.org
Wed, 16 Mar 2005 13:24:15 -0000
albertel Wed Mar 16 08:24:15 2005 EDT
Modified files:
/loncom/xml lonxml.pm
Log:
- only send last modified headers for published requests
Index: loncom/xml/lonxml.pm
diff -u loncom/xml/lonxml.pm:1.362 loncom/xml/lonxml.pm:1.363
--- loncom/xml/lonxml.pm:1.362 Thu Mar 10 14:10:31 2005
+++ loncom/xml/lonxml.pm Wed Mar 16 08:24:15 2005
@@ -1,7 +1,7 @@
# The LearningOnline Network with CAPA
# XML Parser Module
#
-# $Id: lonxml.pm,v 1.362 2005/03/10 19:10:31 matthew Exp $
+# $Id: lonxml.pm,v 1.363 2005/03/16 13:24:15 albertel Exp $
#
# Copyright Michigan State University Board of Trustees
#
@@ -1303,8 +1303,10 @@
&Apache::loncommon::content_type($request,'text/html');
}
&Apache::loncommon::no_cache($request);
- $request->set_last_modified(&Apache::lonnet::metadata($request->uri,
- 'lastrevisiondate'));
+ if ($ENV{'request.state'} eq 'published') {
+ $request->set_last_modified(&Apache::lonnet::metadata($request->uri,
+ 'lastrevisiondate'));
+ }
$request->send_http_header;
return OK if $request->header_only;