FetchEvent.isReload has been removed

Published:

Categories: DOM

Releases: Firefox 74, Firefox 78 ESR

Description

The isReload property on the FetchEvent interface has been removed with Firefox 74 because it was dropped from the Service Workers spec back in 2017. You can instead use the cache property on the Request interface and check if the value is reload.

// Don’t do this
if (event.isReload) { ... }
// Do this
if (event.request.cache === 'reload') { ... }

How can I test this?

This change can be tested with the compatibilty checker in our Firefox Developer Tools extension. Get it today!

References