1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-08 15:16:56 +02:00

Clarified comment.

This commit is contained in:
Steve Clay
2008-07-24 00:51:54 +00:00
parent 6b4bfe84c4
commit 8de36cc08f

View File

@@ -220,7 +220,9 @@ class HTTP_ConditionalGet {
protected function _isCacheValid() protected function _isCacheValid()
{ {
if (null === $this->_etag) { if (null === $this->_etag) {
// ETag was our backup, so we know we don't have lmTime either // lmTime is copied to ETag, so this condition implies that the
// client received neither ETag nor Last-Modified, so can't
// possibly has a valid cache.
return false; return false;
} }
$isValid = ($this->resourceMatchedEtag() || $this->resourceNotModified()); $isValid = ($this->resourceMatchedEtag() || $this->resourceNotModified());