- Issue created by @wim leers
Per 💬 Using Sessionless BigPipe to ALWAYS serve using BigPipe and NEVER from PageCache when using BigPipe Paragraphs (or other functionality) Fixed , some sites may want to opt in to never have their placeholdered BigPipe Paragraphs served via BigPipe Sessionless, but instead may want it to be always served to anonymous (aka sessionless) users using BigPipe instead.
I re-read @jefuri's excellent comments and now articulated how you can achieve that:
\Drupal\big_pipe_sessionless\Render\BigPipeSessionless::primePageCache()
with a HtmlResponse
object to prime the Page Cache with.\Drupal\page_cache\StackMiddleware\PageCache::storeResponse()
, which contains this logic: // Allow policy rules to further restrict which responses to cache.
if ($this->responsePolicy->check($response, $request) === ResponsePolicyInterface::DENY) {
return FALSE;
}
N/A
\Drupal\Core\PageCache\ResponsePolicyInterface
service.Active
1.0
Code