once load splash

This commit is contained in:
hamid zarghami
2026-06-06 10:04:47 +03:30
parent e948b00f55
commit 2ae99faca9
12 changed files with 201 additions and 64 deletions
+14 -1
View File
@@ -17,7 +17,20 @@ const nextConfig: NextConfig = {
},
headers: async () => [
{
source: "/:path*",
source: "/sw.js",
headers: [
{
key: "Cache-Control",
value: "public, max-age=0, must-revalidate",
},
{
key: "Service-Worker-Allowed",
value: "/",
},
],
},
{
source: "/((?!sw\\.js|api/pwa-icon).*)",
headers: [
{
key: "Cache-Control",