Problem/Motivation
Error in the watchdog
RuntimeException: Failed to start the session because headers have already been sent by "/vendor/symfony/http-foundation/Response.php" at line 410. in Symfony\Component\HttpFoundation\Session\Storage\NativeSessionStorage->start() (line 116 of /vendor/symfony/http-foundation/Session/Storage/NativeSessionStorage.php)
The backtrace mention the stack middleware.
Steps to reproduce
My guess is that this error is triggered by bots, because they ignore cookies.
Proposed resolution
Investigating this issue, I think I'm gonna remove the stack middleware to go with a PageCachePolicy which seems a better, more robust way of getting the same result.
Issue fork alert_message-3566410
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #2
aporieComment #6
aporieReleased as major 1.1.0.