Need for Speed
summary
Demo builds a manual service worker (sw.js) and an Angular PWA via ng add @angular/pwa and shows concrete code: static precache, an offline fallback HTML, cloning responses into a dynamic v1 cache, and an activate step that deletes old static v2 caches. Uses http-server locally, notes the service worker waits ~30 seconds or until stable, caches five images in the demo, and actually serves pages and images offline so the fallback and cache invalidation work end to end.
AI-written summary Β· about
chapters (6)
- 0:00Start
- 4:08STATIC CACHE
- 6:23FETCH CACHE
- 11:21DYNAMIC CACHE
- 13:27CACHE CLEANUP
- 14:25ANGULAR STARTER CODE
related talks
39mOffline first!
41mOffline Web Apps don't exist anymore!
51mAMP, PWAs, HTTP/2 and Service Workers: A New Era of Web Performance?
46mFrontend development in the (current) future
29mAwesome Progressive Web Apps with Angular
17mTransforming your Web Application into a PWA - Why and How?
31mWeb for all The power of progressive web apps
02h 21mUnlocking Progressive Web Applications
