From cbb9bcd93dc045a7a1a56840f28486f25a85bc1f Mon Sep 17 00:00:00 2001 From: Denis Flaven Date: Tue, 5 Jun 2018 12:59:17 +0000 Subject: [PATCH] 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] --- pages/ajax.document.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/ajax.document.php b/pages/ajax.document.php index cca38559a..b73715bb2 100644 --- a/pages/ajax.document.php +++ b/pages/ajax.document.php @@ -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; }