Add cache context and tag in addition to vary header

Created on 11 November 2024, 13 days ago

Problem/Motivation

When using a consumer to alter a response output that is cached, changing the consumer id in the request header or updating consumer configuration does not invalidate the cache for said response.

Proposed resolution

In addition to setting the HTTP Vary header, a cache context for the X-Consumer-ID header and a cache tag for the negotiated consumer should be set on the response.

🐛 Bug report
Status

Active

Version

1.0

Component

Code

Created by

🇦🇹Austria chfoidl Salzburg

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

Merge Requests

Comments & Activities

Production build 0.71.5 2024