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:
@@ -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;
|
||||
}
|
||||
|
Reference in New Issue
Block a user