Commit 0b42979
committed
🤖 Fix service worker cache errors for POST requests
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.1 parent 3aff87e commit 0b42979
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