Skip to content

Commit

Permalink
Use comma in Cache-Control header (#147)
Browse files Browse the repository at this point in the history
fixes #146
  • Loading branch information
michael-e authored and nitriques committed Aug 15, 2016
1 parent 091a58a commit 1ea6992
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/class.jit.php
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 1ea6992

Please sign in to comment.