ppresume / community

Discussions, feedbacks, roadmaps, community.
57 stars 3 forks source link

feat: set up service worker for PWA #43

Closed xiaohanyu closed 2 months ago

xiaohanyu commented 2 months ago

Description

Service worker sit at the core of a PWA app and we need to set up service worker when adopt PWA for PPResume.

This issue depends on #41 and is depended by #39

[Optional] Possible Solutions

Acceptance Criteria

Todo list

### Tasks
- [x] setup service-worker
- [x] setup correct caching strategy for different resources
- [x] make sure the app works the same with or without service worker cache (i.e, progressive enhancement)
- [x] check cachebility for cors request to unpkg
- [x] set cache quota and check cache eviction strategy
xiaohanyu commented 2 months ago

Done.

Preview:

image image image