📜  React Cache buster - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:20.460000             🧑  作者: Mango

代码示例1
if (caches) {
  const names = await caches.keys();
  await Promise.all(names.map(name => caches.delete(name)));
}
window.location.reload();