Link rel=serviceworker DEMO

button in this page is for fetching random value from ./random API

API serves with Link: rel=serviceworker header and register service worker for offline support

so make this page offline via devtools, you can fetch random value from service worker fallback

random: