Commit 52d8403
authored
🤖 Fix service worker cache errors for POST requests (#446)
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`_1 parent 9eb6db0 commit 52d8403
1 file changed
+7
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
33 | 33 | | |
34 | 34 | | |
35 | 35 | | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
| 40 | + | |
| 41 | + | |
| 42 | + | |
36 | 43 | | |
37 | 44 | | |
38 | 45 | | |
| |||
0 commit comments