@nolanlawson Oh, I see. Yea, for my octopress blog I just use generation date: https://github.com/wanderview/wanderview.github.com/blob/source/source/sw.js#L12 …
-
-
Replying to @wanderview
@wanderview@nolanlawson Unless you cachebust URLs or use hashes in your filenames, that approach is dangerous. See https://github.com/GoogleChrome/samples/blob/gh-pages/service-worker/prefetch/service-worker.js#L56 …1 reply 0 retweets 0 likes -
Replying to @jeffposnick
@wanderview@nolanlawson E.g. https://blog.wanderview.com/stylesheets/screen.css … has max-age=14400. cache.addAll() will repopulate with existing version for 10 days.1 reply 0 retweets 0 likes -
Replying to @jeffposnick
@jeffposnick@nolanlawson Long max-age is an issue regardless of SW, no? And shift-reload invalidates http cache and trigger SW update.1 reply 0 retweets 0 likes -
Replying to @wanderview
@jeffposnick@nolanlawson I guess you are concerned about SW update triggered within the 14400 window, getting stale resource in SW cache.1 reply 0 retweets 0 likes -
Replying to @wanderview
@jeffposnick@nolanlawson Not sure this can happen when SW script has same max-age. Only seems possible for max-age over 24 hours.2 replies 0 retweets 0 likes -
Replying to @wanderview
@wanderview I've pinged@jaffathecake about this edge case in the past, as some of his samples set SW Max-Age: 0 (https://github.com/jakearchibald/offline-wikipedia/blob/master/index.js#L41 …)2 replies 0 retweets 0 likes
@jeffposnick @wanderview @jaffathecake: yeah, I view this as mostly just being a side-effect of not using versioned URLs correctly. #notabug
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.