Commit graph

18 commits

Author SHA1 Message Date
Johannes Millan
86357f705a fix(pwa): cache the hashed icon font so it renders offline on iOS #8138
In production the esbuild builder fingerprints the @font-face url() and
emits the Material Symbols woff2 to /media/<hash>.woff2, but ngsw-config
only precached the unhashed /assets/fonts copy that nothing loads. The
font the app actually requests was therefore never in the service worker
cache and failed to load offline, leaving icons as their ligature names
(wb_sunny, settings, ...). iOS Safari surfaces this first because, unlike
Chrome, it does not fall back to the HTTP disk cache offline.

- prefetch /media/material-symbols-outlined-*.woff2 (the URL @font-face
  actually requests)
- lazily cache the rest of /media (self-hosted Open Sans) so offline text
  also keeps its font
- font-display: block so the brief load window shows blank glyph space
  rather than the ligature names
2026-06-08 18:29:55 +02:00
johannesjo
7f96181738 fix(pwa): avoid startup stalls during network changes 2026-05-14 12:41:09 +02:00
Johannes Millan
c4ef728413 build: update caching 2025-06-18 19:08:56 +02:00
Johannes Millan
74b7ef409d migrate: service worker 2024-06-18 12:26:50 +02:00
Johannes Millan
0a5b4aab61 feat: add external images to service worker caching #876 2021-12-19 20:29:02 +01:00
Johannes Millan
6a22577f04 fix: fonts not being cached by service worker 2021-12-19 20:15:19 +01:00
Johannes Millan
dd9a15d8e0 fix(dbx): disable service worker caching issue provider stuff completely for now #645 2020-11-06 00:10:54 +01:00
Johannes Millan
e4961b32aa fix(dbx): caching for dropbox 2020-06-01 20:36:54 +02:00
Johannes Millan
4f9fd08005 fix: service worker exclusion problem with workaround 2020-05-01 23:15:45 +02:00
Johannes Millan
e4676aacdd try order for service worker 2020-04-30 21:34:13 +02:00
Johannes Millan
67aeccd58f fix: google drive sync not working as planned due to service worker caching 2020-04-30 19:03:48 +02:00
Johannes Millan
5adaef3d72 feat: use dataGroup rather than assetGroup for issue provider caching 2020-04-05 03:59:59 +02:00
Johannes Millan
62e8911d78 feat: always activate service worker and add caching for all external urls 2020-02-17 18:56:50 +01:00
Johannes Millan
01408fe0de chore: add prefetching goggle fonts 2019-03-20 20:47:32 +01:00
Johannes Millan
431dc0b1f8 feat: cache all google fonts 2019-01-11 14:22:24 +01:00
Johannes Millan
a7565b503c feat: add roboto sans 2019-01-07 20:52:22 +01:00
Johannes Millan
e6687cb980 feat(pwa): add google fonts to cached assets 2018-11-12 19:35:19 +01:00
Johannes Millan
3190ec4b6d REWRITE initial commit 2018-10-07 00:19:13 +02:00