1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-18 11:51:27 +02:00

Completed HTTP_ConditionalGet change to accept 'maxAge' not prevent conditional GETs. Also 304 responses now have the full Cache-Control/Last-Modified/ETag headers so max-age will be honored after each 304 response.

This commit is contained in:
Steve Clay
2008-07-22 23:05:06 +00:00
parent 3f5c9f4de0
commit 3ddc831f20
8 changed files with 26 additions and 27 deletions

View File

@@ -225,10 +225,7 @@ class HTTP_ConditionalGet {
}
$isValid = ($this->resourceMatchedEtag() || $this->resourceNotModified());
if ($isValid) {
// overwrite headers, only need 304
$this->_headers = array(
'_responseCode' => 'HTTP/1.0 304 Not Modified'
);
$this->_headers['_responseCode'] = 'HTTP/1.0 304 Not Modified';
}
return $isValid;
}