Commit f3755bf
authored
Prevent manifest challenge pages from polluting service worker cache (#38)
* Fix dropdown option contrast in native menus
Set explicit option and optgroup colors so dropdown items remain readable in light native popups while keeping dark themed select controls.
* Fix manifest syntax and stale cache handling
Simplify the web manifest to a strict, minimal valid payload and add an app id. Bump service worker cache version and only cache successful network responses to prevent stale HTML/error responses from breaking manifest parsing.
* Prevent manifest challenge pages from polluting SW cache
Exclude manifest requests from service worker handling, remove manifest from app-shell precache, and avoid caching HTML for non-document requests. Bump cache version to flush previously cached bad responses.1 parent e23178d commit f3755bf
1 file changed
Lines changed: 13 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | | - | |
| 1 | + | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
4 | 4 | | |
5 | 5 | | |
6 | 6 | | |
| |||
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
21 | 25 | | |
22 | 26 | | |
23 | 27 | | |
24 | 28 | | |
25 | | - | |
26 | | - | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
27 | 36 | | |
28 | 37 | | |
29 | 38 | | |
| |||
0 commit comments