diff --git a/lib/WebGUI/Content/Asset.pm b/lib/WebGUI/Content/Asset.pm index 305711440..ac5d2eef7 100644 --- a/lib/WebGUI/Content/Asset.pm +++ b/lib/WebGUI/Content/Asset.pm @@ -115,7 +115,7 @@ sub handler { $http->setStatus("304","Content Not Modified"); $http->sendHeader; $session->close; - return Apache2::Const::OK; + return "cached"; } # return the page. diff --git a/lib/WebGUI/URL/Content.pm b/lib/WebGUI/URL/Content.pm index 7bc4c5837..64402604b 100644 --- a/lib/WebGUI/URL/Content.pm +++ b/lib/WebGUI/URL/Content.pm @@ -63,6 +63,9 @@ sub handler { my $output = &$command($session); use strict; if ($output) { + if ($output eq "cached") { + return Apache2::Const::OK; + } unless ($output eq "none" || $output eq "redirect") { unless ($output eq "chunked") { $session->http->sendHeader();