react-clear-cache
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -17,5 +17,2 @@ import { useRef, useEffect, useState } from 'react'; | ||
console.log('Clearing cache and hard reloading...'); | ||
if (!latestVersion) | ||
return; | ||
setAppVersion(latestVersion); | ||
if ('caches' in window) { | ||
@@ -22,0 +19,0 @@ // Service worker cache should be cleared with caches.delete() |
@@ -21,5 +21,2 @@ 'use strict'; | ||
console.log('Clearing cache and hard reloading...'); | ||
if (!latestVersion) | ||
return; | ||
setAppVersion(latestVersion); | ||
if ('caches' in window) { | ||
@@ -26,0 +23,0 @@ // Service worker cache should be cleared with caches.delete() |
{ | ||
"name": "react-clear-cache", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"description": "A component to manage application updates.", | ||
@@ -5,0 +5,0 @@ "author": "noahjohn9259", |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29245
175