diff --git a/core/modules/page_cache/src/StackMiddleware/PageCache.php b/core/modules/page_cache/src/StackMiddleware/PageCache.php index 44bec67..f7d3725 100644 --- a/core/modules/page_cache/src/StackMiddleware/PageCache.php +++ b/core/modules/page_cache/src/StackMiddleware/PageCache.php @@ -324,8 +324,8 @@ protected function getCacheId(Request $request) { */ public function earlyLookup(Request $request, SessionConfigurationInterface $session_configuration) { // Hardcode two request policies: - // - command line - if (PHP_SAPI === 'cli') { + // - command line or unsafe method + if (PHP_SAPI === 'cli' || !$request->isMethodSafe()) { return; }