Skip to content

Commit 79c1452

Browse files
committed
removed cleanup
1 parent 8a4d70c commit 79c1452

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

src/App.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@ import {
2626
import { URLS } from './config'
2727
import Hotjar from './components/Hotjar/Hotjar'
2828
import { validateToken } from './services/service'
29-
import { cleanupOutdatedCaches } from 'workbox-precaching'
3029

3130
const NavigationRoutes = lazy(() => import('./components/common/navigation/NavigationRoutes'))
3231
const Login = lazy(() => import('./components/login/Login'))
@@ -136,7 +135,6 @@ export default function App() {
136135
if (refreshing.current) {
137136
return
138137
}
139-
cleanupOutdatedCaches()
140138
if (document.visibilityState === 'visible') {
141139
window.location.reload()
142140
refreshing.current = true
@@ -194,7 +192,7 @@ export default function App() {
194192
// Trigger page reload
195193
setTimeout(() => {
196194
window.location.reload()
197-
}, 500)
195+
}, 300)
198196
}
199197

200198
useEffect(() => {

0 commit comments

Comments
 (0)