feat: remove uneeded sw thingy & increment asset cache version
This commit is contained in:
parent
2001a0eabf
commit
6c9f475593
2 changed files with 1 additions and 12 deletions
|
@ -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: {
|
||||||
|
|
|
@ -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>
|
||||||
|
|
Loading…
Reference in a new issue