Skip to content

Allow Cache-Control to be configured, and fix the Expires header - #3

Open
robrwo wants to merge 1 commit into
perl-catalyst:masterfrom
robrwo:CVE-2026-15743
Open

Allow Cache-Control to be configured, and fix the Expires header#3
robrwo wants to merge 1 commit into
perl-catalyst:masterfrom
robrwo:CVE-2026-15743

Conversation

@robrwo

@robrwo robrwo commented Aug 17, 2026

Copy link
Copy Markdown

The Cache-Control header was always set to public, with no means of overriding it. (CVE-2026-15743)

An expires header of 0 was ignored.

This change allows the Cache-Control header to be overridden, and the Expires header to be set to 0.

Note: this patch was originally written by Claude Opus 5 but was modified by RRWO to keep the default Cache-Control as "public", to support configuring the default Cache-Control, and to simplify the logic for handling the configured Expires header. RRWO also added documentation.

The Cache-Control header was always set to public, with no means of
overriding it. (CVE-2026-15743)

An expires header of 0 was ignored.

This change allows the Cache-Control header to be overridden, and the
Expires header to be set to 0.

Note: this patch was originally written by Claude Opus 5 but was
modified by RRWO to keep the default Cache-Control as "public", to
support configuring the default Cache-Control, and to simplify the logic
for handling the configured Expires header.  RRWO also added
documentation.

Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>

Signed-off-by: Robert Rothenberg <perl@rhizomnic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant