From 0cfe03726a20083f8f47deb4a40f56a083473591 Mon Sep 17 00:00:00 2001 From: Doug Bell Date: Thu, 27 Dec 2007 05:01:16 +0000 Subject: [PATCH] proposed fix for strange cache issue --- lib/WebGUI/Content/Asset.pm | 2 +- lib/WebGUI/URL/Content.pm | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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();