Commit graph

32 commits

Author SHA1 Message Date
Lim Chee Aun
15732dc466 Move iconsRoute up
Should intercept first before 'assets'
2024-09-18 12:19:01 +08:00
Lim Chee Aun
f3345ad9f8 Fixes for SW caching 2024-09-17 17:35:01 +08:00
Lim Chee Aun
f59058efa1 Add more purges and don't cache too long 2024-09-17 17:18:03 +08:00
Lim Chee Aun
3e752c110f Enable navigation preload 2024-09-17 09:26:15 +08:00
Lim Chee Aun
ac9b43cacc Test remove /instance and /preferences from SW cache 2024-09-17 00:45:58 +08:00
Lim Chee Aun
b3681a93ee Workbox expiration plugin not working as expected 2024-08-04 18:05:03 +08:00
Lim Chee Aun
4ebfb544aa This caching seems still buggy
Revert to SWR with 1-min expiry
2024-08-04 13:32:46 +08:00
Lim Chee Aun
631730f2f2 Replace SWR with CacheFirst
This SWR strategy is sometimes too stale, possibly a bug with Workbox
2024-07-28 16:07:22 +08:00
Lim Chee Aun
21bdb6afc1 Posts timeline for trending links
Timeline logic changed slightly, so might be buggy.
2024-06-19 12:22:17 +08:00
Lim Chee Aun
d4a0a080b5 Bump up max entries for icons 2024-05-15 19:38:28 +08:00
Lim Chee Aun
631333ba9e Cache custom emojis 2024-02-29 18:18:40 +08:00
Lim Chee Aun
c9545cdc34 Try focus first, then postMessage 2023-10-19 17:45:27 +08:00
Lim Chee Aun
119dae29ca Try move this down 2023-10-16 21:38:14 +08:00
Lim Chee Aun
54e69ed23b Perhaps need to be inside waitUntil block? 2023-10-15 23:50:37 +08:00
Lim Chee Aun
8cf30773ce Close notification early
Not sure if this would make a difference but possibly fix some bugs
2023-10-15 16:25:04 +08:00
Lim Chee Aun
8a4ab1bdb9 Rewrite to be slightly more readable
Also, try to fix openWindow not working for Safari PWA
2023-10-01 23:20:48 +08:00
Lim Chee Aun
b3501d158f Fix push notification badge showing white box on Android 2023-09-20 17:28:42 +08:00
Lim Chee Aun
0b5693ae27 First step in caching assets 2023-09-14 23:21:43 +08:00
Lim Chee Aun
0e745663f0 Yes, push notifications (beta).
Heck this feature is tough.
2023-09-01 15:40:00 +08:00
Lim Chee Aun
904e82872e Cache announcements 2023-05-21 08:36:59 +08:00
Lim Chee Aun
7e58a4e14f Use different build path for icons, cache them 2023-04-14 17:23:41 +08:00
Lim Chee Aun
ff1a9fa444 Full CRUD for Lists 2023-04-05 23:30:26 +08:00
Lim Chee Aun
8fdc430dd5 Reduce storage usage 2023-02-25 10:31:50 +08:00
Lim Chee Aun
b7c1078c26 Cache more stuff 2023-02-23 20:54:23 +08:00
Lim Chee Aun
2cd235a069 Better comments 2023-02-09 23:59:27 +08:00
Lim Chee Aun
b2bc596209 StaleWhileRevalidate is still there! 2023-01-10 17:08:10 +08:00
Lim Chee Aun
79ba6cdc29 Try use NetworkFirst, with 5s timeout 2023-01-10 01:28:52 +08:00
Lim Chee Aun
a09f1ea1a3 SWR cache /statuses/:id/context 2023-01-02 14:23:00 +08:00
Lim Chee Aun
fee37f9880 Disable workbox logging because it's too verbose 2023-01-02 14:22:31 +08:00
Lim Chee Aun
263e48d019 New feature: :shortcode: expander in compose field
Using `innerHTML` because easier to code but the `encodeHTML` function is troublesome
2022-12-22 19:24:07 +08:00
Lim Chee Aun
bbccb8a79b Only cache avatars and emojis
No point caching all the images for a week
Also they take up A LOT of space
2022-12-20 13:21:08 +08:00
Lim Chee Aun
ee360403fd It's time for MVP PWA/ServiceWorker
- Not 100% offline yet, very minimal caching
- Fix logo a little
2022-12-19 14:51:56 +08:00