Skip to content
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
code review
Signed-off-by: flakey5 <[email protected]>
  • Loading branch information
flakey5 committed Nov 18, 2024
commit d87f0824f085798003efb26b416078293f73b465
10 changes: 3 additions & 7 deletions lib/util/cache.js
Original file line number Diff line number Diff line change
Expand Up @@ -225,14 +225,10 @@ function isEtagUsable (etag) {
}

if (etag.startsWith('W/"') && etag[etag.length - 1] === '"') {
if (etag.length === 4) {
// ETag: W/"", also where we deviate from the spec & require a min of 3
// chars
return false
}

// ETag: W/"", also where we deviate from the spec & require a min of 3
// chars
// ETag: for W/"", W/"asd123"
return true
return etag.length !== 4
}

// Anything else
Expand Down
Loading