Skip to content

Commit c6cc3c1

Browse files
authored
cache-control: no-cache: use quoted-string form (#4177)
* cache-control: no-cache: use quoted-string form Update comment and test examples of qualified no-cache directives (no-cache=...) to use the quoted-string form instead of the token form. Per https://httpwg.org/specs/rfc9111.html#cache-response-directive.no-cache: > This directive uses the quoted-string form of the argument syntax. A sender SHOULD NOT generate the token form (even if quoting appears not to be needed for single-entry lists). * revert deliberate test case * revert some changes --------- Co-authored-by: alxndrsn <alxndrsn>
1 parent b1fc63c commit c6cc3c1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/util/cache.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ function parseCacheControlHeader (header) {
234234
}
235235
}
236236
} else {
237-
// Something like `no-cache=some-header`
237+
// Something like `no-cache="some-header"`
238238
if (key in output) {
239239
output[key] = output[key].concat(value)
240240
} else {

0 commit comments

Comments
 (0)