Skip to content

Commit

Permalink
Update fetch.php
Browse files Browse the repository at this point in the history
The correct syntax of Cache-Control header is "max-age" :)
  • Loading branch information
cgxxx authored and seblucas committed Feb 25, 2018
1 parent 0c01983 commit e4cea1d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion fetch.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@

$expires = 60*60*24*14;
header('Pragma: public');
header('Cache-Control: maxage=' . $expires);
header('Cache-Control: max-age=' . $expires);
header('Expires: ' . gmdate('D, d M Y H:i:s', time()+$expires) . ' GMT');
$bookId = getURLParam('id', NULL);
$type = getURLParam('type', 'jpg');
Expand Down

0 comments on commit e4cea1d

Please sign in to comment.