hardStudy question · answer published in HTML interview questions, so no pointsservice-workerscaching
Old version after deploy with a service worker
Your service worker serves index.html with a stale-while-revalidate strategy. After a deploy, users see the old app on the first reload and the new one on the second. Why?
Discussion 0
Join free to post in the discussion.
Related questions
- no-cache versus no-storeFrontend Developer
- What a 304 response meansFrontend Developer
- Unit of max-ageFrontend Developer
- Main benefit of a CDNFrontend Developer
- What a service worker doesFrontend Developer
- What Vary doesFrontend Developer
- Page not restored on BackFrontend Developer
- stale-while-revalidateFrontend Developer