Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 6 additions & 1 deletion tests/conditional-etag.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -65,9 +65,14 @@ export default {
]
}),
{
// The two conditionals are intentionally in disagreement: the
// matching `If-None-Match` yields 304, whereas `If-Modified-Since`
// is set before `Last-Modified` (-10000 vs -5000) so on its own it
// would yield 200. Only a cache that gives `If-None-Match`
// precedence returns the expected 304.
request_headers: [
['If-None-Match', '"abcdef"'],
['If-Modified-Since', -1]
['If-Modified-Since', -10000]
],
magic_ims: true,
expected_type: 'cached',
Expand Down