Thanks to visit codestin.com
Credit goes to github.com

Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
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
fix(fetch-cache): re-add 'FETCH' check
  • Loading branch information
samcx committed Mar 21, 2024
commit 2cd7f6c84fa4d324924d9f8027bed411e42c79c8
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,9 @@ export default class FetchCache implements CacheHandler {
}

// if new tags were specified, merge those tags to the existing tags
cached.tags = [...new Set([...(cached.tags ?? []), ...(tags ?? [])])]
if (cached.kind === 'FETCH') {
cached.tags = [...new Set([...(cached.tags ?? []), ...(tags ?? [])])]
}

const cacheState = res.headers.get(CACHE_STATE_HEADER)
const age = res.headers.get('age')
Expand Down