Skip to content

Conversation

@ammar-agent
Copy link
Collaborator

Service worker was attempting to cache all requests including POST requests (from browser mode IPC calls and AI streaming). The Cache API only supports caching GET requests.

Added check to skip caching for non-GET requests, preventing the error:
Failed to execute 'put' on 'Cache': Request method 'POST' is unsupported

This fix maintains PWA caching for browser mode while avoiding errors during development and when using POST-based features.

Generated with cmux

Service worker was attempting to cache all requests including POST
requests (from browser mode IPC calls and AI streaming). The Cache API
only supports caching GET requests.

Added check to skip caching for non-GET requests, preventing the error:
'Failed to execute 'put' on 'Cache': Request method 'POST' is unsupported'

This fix maintains PWA caching for browser mode while avoiding errors
during development and when using POST-based features.
@ammario ammario enabled auto-merge October 27, 2025 03:00
@ammario ammario added this pull request to the merge queue Oct 27, 2025
Merged via the queue into main with commit 52d8403 Oct 27, 2025
13 checks passed
@ammario ammario deleted the service-errors branch October 27, 2025 03:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants