TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Chrome 40 beta: Offline service workers

78 点作者 aarkay超过 10 年前

3 条评论

lxgr超过 10 年前
&gt;[...] could do their work even after the page is closed, provided the user has given permission.<p>I&#x27;m really glad for the second half of that statement.<p>While I could imagine a few use cases, the last thing I want on my smartphone are arbitrary bloated sites draining my battery after closing them. I even consider it a feature of websites vs. native apps.
msoad超过 10 年前
Service Workers are what Application Cache should have been first. Application Cache has a big flaw and that is, you can&#x27;t control it much. You depend on browser to decide what to do when there is no Internet connection. With Service Workers you get to programmatically tell browser what to do with network requests and so on.<p>Classic configuration file vs. let me write actual code approach. I&#x27;m glad we have both now! Application Cache makes sense for a lot of static websites.
评论 #8701594 未加载
ropiku超过 10 年前
I&#x27;m glad it&#x27;s a native feature.<p>I attended a talk by an FT engineer and I was amazed by what&#x27;s possible.<p>Update: Mistakenly thought that FT uses Polyfill for service workers.
评论 #8701335 未加载