Skip to content

Commit

Permalink
chore: improve comment
Browse files Browse the repository at this point in the history
  • Loading branch information
KaiVandivier committed Jul 25, 2024
1 parent 4bcb812 commit 354b9b0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pwa/src/service-worker/other-strategies.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,9 @@ export class DevNetworkFirst extends Strategy {

if (response && !error) {
// Successful -- try to cache
// Note: 400+ & 500+ responses won't get cached here,
// Note: handler.cachePut doesn't cache 400+ & 500+ responses,
// but they will get get returned to the browser below
// for the client to handle
await handler.cachePut(cacheKey, response.clone())
} else {
// Unsuccessful -- try cache for response to return
Expand Down

0 comments on commit 354b9b0

Please sign in to comment.