- Notifications
You must be signed in to change notification settings - Fork 84
Closed
Description
The UserContextListener sets the Symfony-Session-NoAutoCacheControl header. But if a project does not even use sessions and disabled it, then the \Symfony\Component\HttpKernel\EventListener\SessionListener is not active. And thus also does not remove this header again. So FOSHttpCacheBundle should not set this header when sessions are not enabled in
| $response->headers->set(AbstractSessionListener::NO_AUTO_CACHE_CONTROL_HEADER, 1); |
| $response->headers->set(AbstractSessionListener::NO_AUTO_CACHE_CONTROL_HEADER, 1); |
Otherwise it exposes this header to the outside.
Metadata
Metadata
Assignees
Labels
No labels