Skip to content

Commit

Permalink
Add catch block to main request handler
Browse files Browse the repository at this point in the history
  • Loading branch information
dvj1988 committed May 16, 2024
1 parent 17b6d45 commit 30e2db9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions app/client/src/serviceWorker.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,9 +52,11 @@ const handleFetchHtml = async (event, request, url) => {
const prefetchConsolidatedApiRequest = getPrefetchConsolidatedApiRequest(url);

if (prefetchConsolidatedApiRequest) {
consolidatedApiCacheStrategy.cacheConsolidatedApi(
prefetchConsolidatedApiRequest,
);
consolidatedApiCacheStrategy
.cacheConsolidatedApi(prefetchConsolidatedApiRequest)
.catch(() => {
// Silently fail
});
}

const networkHandler = new NetworkOnly();
Expand Down

0 comments on commit 30e2db9

Please sign in to comment.