--- loncom/homework/lonhomework.pm 2001/12/21 20:06:25 1.67 +++ 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.67 2001/12/21 20:06:25 matthew Exp $ +# $Id: lonhomework.pm,v 1.68 2002/01/03 22:16:53 albertel Exp $ # # Copyright Michigan State University Board of Trustees # @@ -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 ''