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 8, 2017
1 parent 43f9acd commit de2ede8
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 @@ -249,7 +249,7 @@ function __errorHandler($errno=NULL, $errstr, $errfile=NULL, $errline=NULL, $err
$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 de2ede8

Please sign in to comment.