Skip to content

Commit 7bc680e

Browse files
committed
Fix cache control
Multiple values should be seperated by comma See https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Cache-Control Closes #156
1 parent 43f9acd commit 7bc680e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/image.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@ function __errorHandler($errno=NULL, $errstr, $errfile=NULL, $errline=NULL, $err
249249
$etag = md5($last_modified . $image_path);
250250
// Use configured max-age or fallback on 3 days (See #88)
251251
$maxage = isset($settings['image']['max-age']) ? $settings['image']['max-age'] : 86400;
252-
$cacheControl = 'public; max-age=' . $maxage;
252+
$cacheControl = 'public, max-age=' . $maxage;
253253

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

0 commit comments

Comments
 (0)