feat: remove uneeded sw thingy & increment asset cache version

This commit is contained in:
Ayo Ayco 2025-01-04 00:11:18 +01:00
parent 2001a0eabf
commit 6c9f475593
2 changed files with 1 additions and 12 deletions

View file

@ -10,7 +10,7 @@ export default defineConfig({
serviceWorker({ serviceWorker({
path: './src/sw.mjs', path: './src/sw.mjs',
assetCachePrefix: 'ayco-personal-site', assetCachePrefix: 'ayco-personal-site',
assetCacheVersionID: '2', assetCacheVersionID: '3',
logAssets: true, logAssets: true,
excludeRoutes: ['/threads'], excludeRoutes: ['/threads'],
esbuild: { esbuild: {

View file

@ -41,15 +41,4 @@ const baseURL = 'https://ayo.ayco.io'
<link rel="me" href="https://metapixl.com/@ayo" /> <link rel="me" href="https://metapixl.com/@ayo" />
<link rel="shortcut icon" type="image/png" href="/favicon.ico" /> <link rel="shortcut icon" type="image/png" href="/favicon.ico" />
<script>
/**
* unregister existing service workers
*/
navigator.serviceWorker.getRegistrations().then((registrations) => {
for (const registration of registrations) {
registration.unregister()
}
})
</script>
</head> </head>