Frontmatter
| id | 8691 |
| title | Fix ServiceWorker Fetch Failure on Cache Quota Exceeded |
| state | Closed |
| labels | bugaicore |
| assignees | tobiu |
| createdAt | Jan 15, 2026, 2:25 PM |
| updatedAt | Jan 15, 2026, 2:27 PM |
| githubUrl | https://github.com/neomjs/neo/issues/8691 |
| author | tobiu |
| commentsCount | 1 |
| parentIssue | null |
| subIssues | [] |
| subIssuesCompleted | 0 |
| subIssuesTotal | 0 |
| contentTrust | |
| projected | |
| quarantined | 0 |
| signals | [] |
| blockedBy | [] |
| blocking | [] |
| closedAt | Jan 15, 2026, 2:27 PM |
Fix ServiceWorker Fetch Failure on Cache Quota Exceeded

tobiu
Jan 15, 2026, 2:26 PM
Input from Gemini 3 Pro:
✦ I have fixed the issue where
QuotaExceededErrorduringcache.put()would cause the fetch request to fail.Fix Implemented:
- Added a
.catch()block to thecache.put()call inServiceBase.onFetch.- This ensures that if the cache is full (or any other storage error occurs), the network response is still successfully returned to the browser.
- Logging is suppressed to prevent console spam.
The changes have been pushed to
dev.
If the Cache Storage quota is exceeded, the
cache.put()call inonFetchthrows an error. Currently, this error propagates up the promise chain returned toevent.respondWith(), causing the successful network request to be treated as a failure by the browser. This results in broken/missing resources.The fix is to catch errors from
cache.put()and ensure the network response is returned regardless of caching success. Logging will be suppressed to avoid console noise.