Skip to content

Tests: Cache-Control directive matching at token boundaries - #85

Open
VadimZhestikov wants to merge 3 commits into
nginx:masterfrom
VadimZhestikov:test/cache-control-token-boundary
Open

Tests: Cache-Control directive matching at token boundaries#85
VadimZhestikov wants to merge 3 commits into
nginx:masterfrom
VadimZhestikov:test/cache-control-token-boundary

Conversation

@VadimZhestikov

Copy link
Copy Markdown
Contributor

Adds cases to proxy_cache_control.t verifying that extension directives which merely contain a standard directive name as a substring (x-max-age=, foo-s-maxage=) are not treated as the standard freshness directive and do not make a response cacheable.

Marked TODO until the corresponding code change is released.

Code PR: nginx/nginx#1577

Extension directives that merely contain a standard directive name as a
substring, such as "x-max-age=" or "foo-s-maxage=", must not be treated
as the standard freshness directive and must not make a response
cacheable.

The tests are marked TODO until the corresponding change is released.
An option that merely contains "close" or "keep-alive" as a substring
must not select the client connection type, nor prevent an upstream
connection from being reused.
@VadimZhestikov
VadimZhestikov force-pushed the test/cache-control-token-boundary branch from 8bd0755 to efe240d Compare August 5, 2026 18:08
A tab may separate list elements, both after the colon and after a
comma.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: In Review

Development

Successfully merging this pull request may close these issues.

2 participants