|
@ -1,9 +1,9 @@ |
|
|
<?php |
|
|
<?php |
|
|
// this test returns 400 rather than 304 if the values of If-Modified-Since |
|
|
// this test returns 400 rather than 304 if the values of If-Modified-Since |
|
|
// and If-None-Match doesn't match $G_GET['t'] and $_GET['e'] respectively, or |
|
|
// and If-None-Match doesn't match $G_GET['t'] and $_GET['e'] respectively, or |
|
|
// if the $_GET members are missing |
|
|
// if the $_GET members are missing |
|
|
if ( |
|
|
if ( |
|
|
!($_GET['t'] ?? "") || |
|
|
!($_GET['t'] ?? "") || |
|
|
!($_GET['e'] ?? "") || |
|
|
!($_GET['e'] ?? "") || |
|
|
($_SERVER['HTTP_IF_MODIFIED_SINCE'] ?? "") !== gmdate("D, d M Y H:i:s \G\M\T", (int) $_GET['t']) || |
|
|
($_SERVER['HTTP_IF_MODIFIED_SINCE'] ?? "") !== gmdate("D, d M Y H:i:s \G\M\T", (int) $_GET['t']) || |
|
|
($_SERVER['HTTP_IF_NONE_MATCH'] ?? "") !== $_GET['e'] |
|
|
($_SERVER['HTTP_IF_NONE_MATCH'] ?? "") !== $_GET['e'] |
|
@ -20,4 +20,3 @@ if ( |
|
|
], |
|
|
], |
|
|
]; |
|
|
]; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|