once load splash
This commit is contained in:
+14
-1
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user