mirror of
https://github.com/friendica/friendica
synced 2024-12-23 08:00:16 +00:00
Improve expectation for not modified check in theme/vier/style
- Address https://github.com/friendica/friendica/issues/9252#issuecomment-721994406
This commit is contained in:
parent
ccad67c68f
commit
260b9e7bd3
1 changed files with 1 additions and 1 deletions
|
@ -61,7 +61,7 @@ header('Cache-Control: public');
|
|||
header('ETag: "'.$etag.'"');
|
||||
header('Last-Modified: '.$modified);
|
||||
|
||||
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) || isset($_SERVER['HTTP_IF_NONE_MATCH'])) {
|
||||
if (isset($_SERVER['HTTP_IF_MODIFIED_SINCE']) && isset($_SERVER['HTTP_IF_NONE_MATCH'])) {
|
||||
$cached_modified = gmdate('r', strtotime($_SERVER['HTTP_IF_MODIFIED_SINCE']));
|
||||
$cached_etag = str_replace(['"', "-gzip"], ['', ''],
|
||||
stripslashes($_SERVER['HTTP_IF_NONE_MATCH']));
|
||||
|
|
Loading…
Reference in a new issue