Add cache context for accept header

Created on 7 May 2021, over 3 years ago
Updated 30 November 2023, about 1 year ago

Problem/Motivation

The image URLs can be different based on the Accept header sent by the browser, but since the cache context for the Accept header is not being added, whatever is rendered first will be cached for all browsers. This leads to browsers not supporting WebP showing WebP images, or browsers supporting WebP not showing the WebP version.

Proposed resolution

Add the headers:accept cache context.

🐛 Bug report
Status

Fixed

Version

1.0

Component

Code

Created by

🇳🇱Netherlands seanB Netherlands

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

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