--- loncom/homework/lonhomework.pm 2001/12/07 23:57:52 1.66 +++ 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.66 2001/12/07 23:57:52 albertel Exp $ +# $Id: lonhomework.pm,v 1.69 2002/01/17 12:23:31 harris41 Exp $ # # Copyright Michigan State University Board of Trustees # @@ -34,6 +34,7 @@ use strict; use Apache::style; use Apache::lonxml; use Apache::lonnet; +use Apache::lonplot; use Apache::inputtags; use Apache::structuretags; use Apache::randomlabel; @@ -43,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(); } @@ -207,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 ''