Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Features
Speaker Deck
PRO
Sign in
Sign up for free
Search
Search
Service Worker and the Offline Web (Lightning T...
Search
Sponsored
·
Your Podcast. Everywhere. Effortlessly.
Share. Educate. Inspire. Entertain. You do you. We'll handle the rest.
→
Lewis Cowper
March 07, 2015
Technology
0
300
Service Worker and the Offline Web (Lightning Talk)
Lewis Cowper
March 07, 2015
Tweet
Share
Other Decks in Technology
See All in Technology
プロポーザルに込める段取り八分
shoheimitani
1
620
こんなところでも(地味に)活躍するImage Modeさんを知ってるかい?- Image Mode for OpenShift -
tsukaman
1
170
SRE Enabling戦記 - 急成長する組織にSREを浸透させる戦いの歴史
markie1009
0
160
ファインディの横断SREがTakumi byGMOと取り組む、セキュリティと開発スピードの両立
rvirus0817
1
1.6k
【Oracle Cloud ウェビナー】[Oracle AI Database + AWS] Oracle Database@AWSで広がるクラウドの新たな選択肢とAI時代のデータ戦略
oracle4engineer
PRO
2
180
マネージャー視点で考えるプロダクトエンジニアの評価 / Evaluating Product Engineers from a Manager's Perspective
hiro_torii
0
130
データの整合性を保ちたいだけなんだ
shoheimitani
8
3.2k
登壇駆動学習のすすめ — CfPのネタの見つけ方と書くときに意識していること
bicstone
3
130
OWASP Top 10:2025 リリースと 少しの日本語化にまつわる裏話
okdt
PRO
3
840
コミュニティが変えるキャリアの地平線:コロナ禍新卒入社のエンジニアがAWSコミュニティで見つけた成長の羅針盤
kentosuzuki
0
130
20260204_Midosuji_Tech
takuyay0ne
1
160
AIエージェントを開発しよう!-AgentCore活用の勘所-
yukiogawa
0
180
Featured
See All Featured
Navigating Team Friction
lara
192
16k
Impact Scores and Hybrid Strategies: The future of link building
tamaranovitovic
0
200
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
0
380
世界の人気アプリ100個を分析して見えたペイウォール設計の心得
akihiro_kokubo
PRO
66
37k
What does AI have to do with Human Rights?
axbom
PRO
0
2k
Visualizing Your Data: Incorporating Mongo into Loggly Infrastructure
mongodb
49
9.9k
What's in a price? How to price your products and services
michaelherold
247
13k
It's Worth the Effort
3n
188
29k
Fight the Zombie Pattern Library - RWD Summit 2016
marcelosomers
234
17k
Mozcon NYC 2025: Stop Losing SEO Traffic
samtorres
0
140
GraphQLとの向き合い方2022年版
quramy
50
14k
A better future with KSS
kneath
240
18k
Transcript
SERVICEWORKER And the Offline Web
#OFFLINEFIRST
"Oh no! My signal's gone! Now I don't have access
to my content" — The internet
"We should cache things!" — Developers
"Hey, I've heard about #offlinefirst. Can we do that in
the next sprint?" — Management
AppCache
— AppCache
Turns out APPCACHE has problems
Your use case doesn't fit into the way APPCACHE can
be used?
ServiceWorker
None
None
ServiceWorker Handle resource requests with a set of durable caches
that can be programmatically controlled.
ServiceWorker ▸ JavaScript worker, can't access the DOM directly COMMUNICATES
WITH PAGES IT CONTROLS VIA THE POSTMESSAGE INTERFACE
ServiceWorker ▸ JavaScript worker, can't access the DOM directly ▸
Programmable network proxy CONTROL HOW NETWORK REQUESTS FROM YOUR PAGE ARE HANDLED
ServiceWorker ▸ JavaScript worker, can't access the DOM directly ▸
Programmable network proxy ▸ Doesn't rely on global state, but can access IndexedDB TERMINATES WHEN NOT IN USE, AND RESTARTS WHEN NEEDED
ServiceWorker ▸ JavaScript worker, can't access the DOM directly ▸
Programmable network proxy ▸ Doesn't rely on global state, but can access IndexedDB ▸ Uses promises extensively
None
ServiceWorker
ServiceWorker 1. Register your ServiceWorker
ServiceWorker 1. Register your ServiceWorker YOU'RE ON YOUR WAY THERE
ALREADY.
ServiceWorker 1. Register your ServiceWorker 2. Tell your ServiceWorker what
to do
ServiceWorker 1. Register your ServiceWorker 2. Tell your ServiceWorker what
to do THIS IS THE FUN PART
ServiceWorker 1. Register your ServiceWorker 2. Tell your ServiceWorker what
to do ▸ Offline Cookbook
ServiceWorker 1. Register your ServiceWorker 2. Tell your ServiceWorker what
to do ▸ Offline Cookbook AWESOME AND FANTASTIC AND WORTH A TALK BY ITSELF.
ServiceWorker Magic and crazy science
ServiceWorker
ServiceWorker
ServiceWorker
ServiceWorker
ServiceWorker
ServiceWorker
THANKS! @LEWISCOWPER