Update Photo.php

This commit is contained in:
Max Kostikov 2019-04-18 21:55:06 +02:00
parent eb02d01eed
commit db020ca1a3

View File

@ -223,7 +223,7 @@ class Photo extends \Zotlabs\Web\Controller {
header_remove('Pragma');
if($_SERVER['HTTP_IF_NONE_MATCH'] == md5($data) || $_SERVER['HTTP_IF_MODIFIED_SINCE'] === gmdate("D, d M Y H:i:s", $modified) . " GMT") {
if($_SERVER['HTTP_IF_NONE_MATCH'] === md5($data) || $_SERVER['HTTP_IF_MODIFIED_SINCE'] === gmdate("D, d M Y H:i:s", $modified) . " GMT") {
header_remove('Expires');
header_remove('Cache-Control');
header_remove('Set-Cookie');