← Back to release summary

Improve Cache Management for Service Worker Scripts

Category
Service Worker
Type
New or changed feature
Status
Enabled by default (Chrome 68)
Intent stage
None

Summary

The HTTP cache will be ignored when requesting updates to the service worker. Requests for importScripts will still go through the HTTP cache. But this is just the default. A new registration option, ServiceWorkerRegistration.updateViaCache is available that offers control over this behavior.

Standards & signals

Docs: * (Once written) https://developer.mozilla.org/en-US/docs/Web/API/ServiceWorkerRegistration/updateViaCache * https://github.com/w3c/ServiceWorker/issues/893

View on chromestatus.com