Skip to content

Commit

Permalink
chore: add log to failed missing precache fetch
Browse files Browse the repository at this point in the history
  • Loading branch information
KaelWD committed Sep 3, 2024
1 parent 7faf1c5 commit bf993f0
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/docs/src/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,8 @@ async function matchPrecache (request) {
response = ensureCacheableResponse(response)
if (response.status === 200) {
precache.put(cacheKey, response.clone())
} else {
console.error(`[SW] Failed to fetch missing precached asset ${request.url}`)
}
})
}
Expand Down

0 comments on commit bf993f0

Please sign in to comment.