Compatibility with Cache Control Override: is max-age=0 really necessary for BigPipe's placeholders?

Created on 8 November 2018, about 6 years ago
Updated 26 August 2023, over 1 year ago

BigPipeSessionlessStrategy::doProcessPlaceholders() calls BigPipeStrategy::createBigPipeNoJsPlaceholder() which sets max-age to 0 in cache metadata. Thus, with the Cache Control Override module, any page containing a placeholder gives a "no-cache" Cache-Control header.

I don't really know how this problem could be fixed, but it would be nice to be able to have both long-lasting varnish-cached pages (big default page cache duration thanks to Cache Control Override) and still fast responses for uncached pages thanks to Big Pipe Sessionless.

Example use-case: on a public website, most of the pages don't change much (could be cached forever until an editor triggers invalidation), but there's an agenda page listing future events. As time goes by, the event list must be refreshed every day so that past events disappear.

πŸ“Œ Task
Status

Needs work

Version

11.0 πŸ”₯

Component
BigPipeΒ  β†’

Last updated 3 days ago

Created by

πŸ‡«πŸ‡·France GaΓ«lG Lille, France

Live updates comments and jobs are added and updated live.
  • Needs tests

    The change is currently missing an automated test that fails when run with the original code, and succeeds when the bug has been fixed.

Sign in to follow issues

Merge Requests

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024