code 304 return compare time not correct
-
Hello,
The return 304 code is not correct.
if ( $http_if_modified_since && ( strtotime( $http_if_modified_since ) <= filemtime( $path_html ) ) ) {
header( $_SERVER[‘SERVER_PROTOCOL’] . ‘ 304 Not Modified’, true, 304 );
exit;
}In the code the result return 304 if the compare time is modified file.
The correct way is ( strtotime( $http_if_modified_since ) >= filemtime( $path_html )Regards,
Auban
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- The topic ‘code 304 return compare time not correct’ is closed to new replies.