From 6cdbfb14429a0e487abbb3e2d42402e95f89b7b1 Mon Sep 17 00:00:00 2001 From: michael-e Date: Sat, 13 Aug 2016 18:32:07 +0200 Subject: [PATCH] Use comma in Cache-Control header; fixes #146 --- lib/class.jit.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/class.jit.php b/lib/class.jit.php index 5b348e3..f383391 100644 --- a/lib/class.jit.php +++ b/lib/class.jit.php @@ -495,7 +495,7 @@ public function sendImageHeaders(array $parameters) $maxage = isset($this->settings['max_age']) ? \General::intval($this->settings['max_age']) : 60 * 60 * 24 * 3; if (!empty($maxage)) { // Add max-age directive at the end - $cacheControl .= '; max-age=' . $maxage; + $cacheControl .= ', max-age=' . $maxage; } header('Last-Modified: ' . $last_modified_gmt);