Proper use of the "304" (Not modified) HTTP header for InlineImages. Seems that FastCGI is more sensitive to incorrect HTTP headers than MPM...

SVN:trunk[5824]
This commit is contained in:
Denis Flaven
2018-06-05 12:59:17 +00:00
parent ad8f7576e0
commit cbb9bcd93d

View File

@@ -31,7 +31,7 @@ require_once(APPROOT.'application/utils.inc.php');
if (array_key_exists('HTTP_IF_MODIFIED_SINCE', $_SERVER) && (strlen($_SERVER['HTTP_IF_MODIFIED_SINCE']) > 0))
{
// The content is garanteed to be unmodified since the URL includes a signature based on the contents of the document
header('not modified', true, 304);
header('Last-Modified: Mon, 1 January 2018 00:00:00 GMT', true, 304); // Any date in the past
exit;
}