Skip to content

Commit

Permalink
Use comma in Cache-Control header
Browse files Browse the repository at this point in the history
Same error as in the 2.x branche: See issue symphonycms#146 symphonycms#146
  • Loading branch information
moretaste authored Feb 1, 2017
1 parent ffdfc2b commit 09dd890
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/image.php
Original file line number Diff line number Diff line change
Expand Up @@ -243,7 +243,7 @@ function __errorHandler($errno = null, $errstr, $errfile = null, $errline = null
$etag = md5($last_modified . $image_path);
// Use configured max-age or fallback on 3 days (See #88)
$maxage = isset($settings['image']['max-age']) ? $settings['image']['max-age'] : 86400;
$cacheControl = 'public; max-age=' . $maxage;
$cacheControl = 'public, max-age=' . $maxage;

// Add no-transform in order to prevent ISPs to
// serve image over http through a compressing proxy
Expand Down

0 comments on commit 09dd890

Please sign in to comment.