diff --git a/apps/web/next.config.ts b/apps/web/next.config.ts index 8e4a7e8..e5fa1c1 100644 --- a/apps/web/next.config.ts +++ b/apps/web/next.config.ts @@ -3,7 +3,19 @@ import withSerwistInit from '@serwist/next'; import type { NextConfig } from 'next'; const nextConfig: NextConfig = { - /* config options here */ + async headers() { + return [ + { + source: '/sw.js', + headers: [ + { + key: 'Cache-Control', + value: 'public, max-age=0, must-revalidate', + }, + ], + }, + ]; + }, }; const withBundle = withBundleAnalyzer({