Skip to content

Commit b7e90ac

Browse files
committed
refactor : clean up cache control comments
1 parent d79e996 commit b7e90ac

File tree

1 file changed

+0
-4
lines changed

1 file changed

+0
-4
lines changed

components/dev/CacheControl.tsx

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,17 @@ export function CacheControl() {
1111
const handleClearCache = () => {
1212
setIsClearing(true)
1313
try {
14-
// Clear localStorage cache
1514
for (let i = 0; i < localStorage.length; i++) {
1615
const key = localStorage.key(i)
1716
if (key && key.startsWith('iframe-cache-')) {
1817
localStorage.removeItem(key)
1918
}
2019
}
2120

22-
// Clear service worker cache
2321
clearIframeCache()
2422

25-
// Update service worker
2623
updateServiceWorker()
2724

28-
// Show success for a moment
2925
setTimeout(() => {
3026
setIsClearing(false)
3127
}, 1000)

0 commit comments

Comments
 (0)