TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Ask HN: Do you use service workers for your web app?

4 pointsby praveenwebabout 7 years ago
I&#x27;m just curious to understand if anyone is using service workers for their web app in production and if so, what use cases does it solve particularly well.<p>More specifically, in terms of caching, apart from working offline how is it different from browser&#x2F;CDN cache? What if your service worker itself is cached for sometime and you want to rollout an update? What are the best practices? How has your experience been maintaining service worker on a production app? What about security?<p>I know notifications can be done, server push with HTTP&#x2F;2 etc. But which kind of web apps can make the best use of service workers and which ones shouldn&#x27;t implement it?

2 comments

neilsimp1about 7 years ago
I&#x27;m currently writing a PWA and using <a href="https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;sw-precache-webpack-plugin" rel="nofollow">https:&#x2F;&#x2F;www.npmjs.com&#x2F;package&#x2F;sw-precache-webpack-plugin</a> to generate the service worker on each build. It&#x27;s nice because it&#x27;s a whole chunk of what would otherwise be application logic that I now give zero thought too.
Jack000about 7 years ago
I use service workers on <a href="http:&#x2F;&#x2F;svgnest.com" rel="nofollow">http:&#x2F;&#x2F;svgnest.com</a><p>no idea about caching, I mainly use it max out all the cores for the cpu bound algo.<p>its probably good for browser based cryptocurrency mining too.
评论 #16565785 未加载