Skip to content

Commit

Permalink
BUGFIX: Reponses with Set-Cookie should never be cached
Browse files Browse the repository at this point in the history
  • Loading branch information
kitsunet authored Dec 18, 2019
1 parent a7dc9fe commit 7bafb8a
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Classes/Http/RequestStorageComponent.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ public function handle(ComponentContext $componentContext)
if ($response->hasHeader('X-From-FullPageCache')) {
return;
}

if ($response->hasHeader('Set-Cookie')) {
return;
}

if ($response->hasHeader('X-CacheLifetime')) {
$lifetime = (int)$response->getHeaderLine('X-CacheLifetime');
Expand Down

0 comments on commit 7bafb8a

Please sign in to comment.