Skip to content

Commit

Permalink
Use comma in Cache-Control header; fixes symphonycms#146
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-e committed Aug 13, 2016
1 parent 091a58a commit 6cdbfb1
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 6cdbfb1

Please sign in to comment.