From 3edfb6e3ed1c6e5802a05602dfb67775f342a28c Mon Sep 17 00:00:00 2001 From: Niko Date: Thu, 17 Jul 2025 09:48:42 +0200 Subject: [PATCH] Remove service worker astro package --- astro.config.mjs | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 644135ce5..a1b54c491 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -8,7 +8,6 @@ import rehypeSlug from "rehype-slug"; import rehypeAutolinkHeadings from "rehype-autolink-headings"; import metaTags from "astro-meta-tags"; import deleteUnusedImages from "astro-delete-unused-images"; -import serviceWorker from "astrojs-service-worker"; import { execSync } from "node:child_process"; import svelte from "@astrojs/svelte"; import compress from "astro-compress"; @@ -152,29 +151,6 @@ export default defineConfig({ integrations: [ mdx(), svelte(), - serviceWorker({ - workbox: { - inlineWorkboxRuntime: true, - runtimeCaching: [ - { - urlPattern: - /\.(?:js|css|json|png|jpg|jpeg|svg|woff2?|ttf|eot|gif)$/, - handler: "CacheFirst", - options: { - cacheName: "assets-cache", - expiration: { - maxEntries: 100, - maxAgeSeconds: 60 * 60 * 1, // 1h - }, - }, - }, - { - urlPattern: /\.html$/, - handler: "NetworkOnly", // ⛔ Don't cache HTML - }, - ], - }, - }), ...(fastBuild ? [] : [