Commit a5b6c19d by DaSourcerer

Removed bogus conditional

parent a315f2b7
...@@ -150,7 +150,7 @@ class HttpCache extends ActionFilter ...@@ -150,7 +150,7 @@ class HttpCache extends ActionFilter
*/ */
protected function validateCache($lastModified, $etag) protected function validateCache($lastModified, $etag)
{ {
if($etag !== null && isset($_SERVER['HTTP_IF_NONE_MATCH']) && in_array($etag, Yii::$app->request->getEtags(), true)) { if($etag !== null && in_array($etag, Yii::$app->request->getEtags(), true)) {
return true; return true;
} else { } else {
return $lastModified !== null && isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && @strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) >= $lastModified; return $lastModified !== null && isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && @strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']) >= $lastModified;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment