Cache-Tag header limit is incorrect

Created on 7 February 2021, over 3 years ago
Updated 10 January 2024, 6 months ago

Problem/Motivation

The Cache-Tag header is currently limited to 255 bytes:
https://git.drupalcode.org/project/cloudflare/-/blob/9aa28e567aa9124e985...

Upon further investigation, it looks like this limit is not used and every header value is hashed

@todo Remove this wrapper once CloudFlare supports 16k headers.

https://git.drupalcode.org/project/cloudflare/-/blob/9aa28e567aa9124e985...

Cloudflare now allows headers up to 16KB

Individual tags don’t have a maximum length, but the aggregate Cache-Tag HTTP header cannot exceed 16 KB after the header field name, which is approximately 1000 unique tags. Length includes whitespace and commas, but not the header field name.

https://support.cloudflare.com/hc/en-us/articles/200169246-Purging-cache...

Steps to reproduce

N/A

Proposed resolution

Remove the unused limit parameter and the header minification.

Remaining tasks

  1. Write Patch

User interface changes

None

API changes

Most response headers will be the actual tags

Data model changes

N/A

πŸ› Bug report
Status

Needs review

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡ΈUnited States davidwbarratt

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.69.0 2024