proposed fix for strange cache issue

This commit is contained in:
Doug Bell 2007-12-27 05:01:16 +00:00
parent 2fa12f41b7
commit 0cfe03726a
2 changed files with 4 additions and 1 deletions

View file

@ -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.

View file

@ -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();