--- loncom/homework/lonhomework.pm 2001/12/21 20:06:25 1.67 +++ loncom/homework/lonhomework.pm 2002/01/17 12:23:31 1.69 @@ -1,7 +1,7 @@ # The LearningOnline Network with CAPA # The LON-CAPA Homework handler # -# $Id: lonhomework.pm,v 1.67 2001/12/21 20:06:25 matthew Exp $ +# $Id: lonhomework.pm,v 1.69 2002/01/17 12:23:31 harris41 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -44,7 +44,7 @@ use Apache::outputtags; use Apache::Constants qw(:common); #use Time::HiRes qw( gettimeofday tv_interval ); -sub BEGIN { +BEGIN { &Apache::lonxml::register_insert(); } @@ -208,7 +208,9 @@ sub setupheader { } else { $request->content_type('text/html'); } - if (!$Apache::lonxml::debug) { &Apache::loncommon::no_cache($request); } + if (!$Apache::lonxml::debug && ($ENV{'REQUEST_METHOD'} eq 'GET')) { + &Apache::loncommon::no_cache($request); + } $request->send_http_header; return OK if $request->header_only; return ''