- From: Anne van Kesteren <notifications@github.com>
- Date: Fri, 30 Dec 2016 02:21:50 -0800
- To: whatwg/streams <streams@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 30 December 2016 10:22:25 UTC
annevk commented on this pull request.
> + "https://resources.whatwg.org/commit-snapshot-shortcut-key.js",
+ "https://resources.whatwg.org/logo-streams.svg"
+];
+
+self.oninstall = e => {
+ e.waitUntil(caches.open(cacheKey).then(cache => cache.addAll(toCache)));
+};
+
+self.onfetch = e => {
+ if (e.request.method !== "GET") {
+ return;
+ }
+
+ e.respondWith(
+ // Since this is a Living Standard, it is imperative that you see the freshest content, so we use a
+ // network-then-cache strategy.
Should we perhaps only do this for the main content, not the subresources?
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/whatwg/streams/pull/637#pullrequestreview-14747384
Received on Friday, 30 December 2016 10:22:25 UTC