[1.x] Page Cache Vary

Created on 26 October 2024, 29 days ago

Extend Drupal's Internal Page Cache by allowing variation of cache based on HTTP header, as per the Vary specification.

There is a cache entry for every variation of a given URL, and a cache entry for every URL (containing the list of variations for the given URL, or none if there is no variation).

For the same variation the cache will hit, for a new variation a new response will be stored in cache.

The Vary header is exposed in the response (as per the specification).

It uses the Cache Context (since it's the same feature), and allow to extend a Page Context by adding an interface (VaryCacheContextInterface) to be able to provide a list of headers to vary the response by.

Page Cache Vary's project page.

📌 Task
Status

Needs review

Component

module

Created by

🇨🇭Switzerland Elendev

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024