diff --git a/phpBB/download/file.php b/phpBB/download/file.php index f71afb670e..f7cf0d09e2 100644 --- a/phpBB/download/file.php +++ b/phpBB/download/file.php @@ -670,8 +670,9 @@ function set_modified_headers($stamp, $browser) { if ($last_load !== false && $last_load <= $stamp) { - if (@php_sapi_name() === 'CGI') + if (substr(strtolower(@php_sapi_name()),0,3) === 'cgi') { + // in theory, we shouldn't need that due to php doing it. Reality offers a differing opinion, though header('Status: 304 Not Modified', true, 304); } else