Skip to content

Commit 1cef068

Browse files
Do not superseed private cache-control when no-store is set
1 parent d6e6084 commit 1cef068

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

src/Symfony/Component/HttpKernel/EventListener/CacheAttributeListener.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -165,7 +165,6 @@ public function onKernelResponse(ResponseEvent $event): void
165165
}
166166

167167
if (true === $cache->noStore) {
168-
$response->setPrivate();
169168
$response->headers->addCacheControlDirective('no-store');
170169
}
171170

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy