Skip to content

Commit

Permalink
PicoAssetResponse: Fix formatting of Cache-Control header
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Rudolf <[email protected]>
  • Loading branch information
PhrozenByte committed Mar 27, 2022
1 parent a70d7bd commit 26050b3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/Http/PicoAssetResponse.php
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ public function cacheFor(int $cacheSeconds, bool $public = false, bool $immutabl
$pragma = $public ? 'public' : 'private';
$maxAge = 'max-age=' . $cacheSeconds;

$this->addHeader('Cache-Control', $pragma . ',' . $maxAge . ($immutable ? ', immutable' : ''));
$this->addHeader('Cache-Control', $pragma . ', ' . $maxAge . ($immutable ? ', immutable' : ''));
$this->addHeader('Pragma', $pragma);

try {
Expand Down

0 comments on commit 26050b3

Please sign in to comment.