GoogleChromeLabs / airhorn

Air horn
https://airhorner.com/
Other
365 stars 188 forks source link

Append cache-busting parameter to prefetched URLs #10

Open jeffposnick opened 9 years ago

jeffposnick commented 9 years ago

Since the SW uses a cache-first strategy that will never check for updates to resources outside of the install handler, it's crucial that the HTTP request made during the install handler goes directly against the network, and doesn't return a response from the browser's cache. In order to ensure this, a cache-busting URL parameter can be added to each URL.

This is something that sw-precache takes care of automatically.

jeffposnick commented 9 years ago

See also https://github.com/GoogleChrome/samples/pull/209 where I'm making a similar update.