--- loncom/homework/lonhomework.pm 2001/12/07 23:57:52 1.66 +++ loncom/homework/lonhomework.pm 2002/01/03 22:16:53 1.68 @@ -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.68 2002/01/03 22:16:53 albertel 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; @@ -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 ''