Skip to content

Commit

Permalink
Update StaticCache.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bencroker authored Aug 30, 2024
1 parent 07f0a44 commit 297588f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/StaticCache.php
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ private function addCacheHeadersToWebResponse(): void
// Cache in proxy, not in browser
Craft::$app->getResponse()->getHeaders()->setDefault(
HeaderEnum::CACHE_CONTROL->value,
"public, s-maxage=$this->cacheDuration max-age=0",
"public, s-maxage=$this->cacheDuration, max-age=0",
);

// Capture, remove any existing headers so we can prepare them
Expand Down

0 comments on commit 297588f

Please sign in to comment.