Local environment uses chrome to open the page, window.caches exists! Window.caches is undefined after deployment on the server

problem description

window.cacheundefined

the environmental background of the problems and what methods you have tried

window.cacheswindow.caches

related codes

/ / Please paste the code text below (do not replace the code with pictures)

window.caches.lastName = data.lastName;
 

what result do you expect? What is the error message actually seen?

 caches
Jul.06,2021

for security reasons, Service Worker can only be used in https or local localhost environments. Window.cache is defined in the service worker standard, so it should be the same as Service Worker

.
Menu