79 lines
1.6 KiB
JSON
79 lines
1.6 KiB
JSON
{
|
|
"cleanUrls": false,
|
|
"trailingSlash": false,
|
|
"headers": [
|
|
{
|
|
"source": "/sw.js",
|
|
"headers": [
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "no-cache, no-store, must-revalidate"
|
|
},
|
|
{
|
|
"key": "Service-Worker-Allowed",
|
|
"value": "/"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/manifest.json",
|
|
"headers": [
|
|
{
|
|
"key": "Content-Type",
|
|
"value": "application/manifest+json; charset=utf-8"
|
|
},
|
|
{
|
|
"key": "Cache-Control",
|
|
"value": "public, max-age=3600"
|
|
}
|
|
]
|
|
},
|
|
{
|
|
"source": "/(.*)",
|
|
"headers": [
|
|
{
|
|
"key": "X-Content-Type-Options",
|
|
"value": "nosniff"
|
|
},
|
|
{
|
|
"key": "X-Frame-Options",
|
|
"value": "SAMEORIGIN"
|
|
},
|
|
{
|
|
"key": "Referrer-Policy",
|
|
"value": "strict-origin-when-cross-origin"
|
|
}
|
|
]
|
|
}
|
|
],
|
|
"rewrites": [
|
|
{
|
|
"source": "/privacy",
|
|
"destination": "/privacy.html"
|
|
},
|
|
{
|
|
"source": "/privacy.html",
|
|
"destination": "/privacy.html"
|
|
},
|
|
{
|
|
"source": "/terms",
|
|
"destination": "/terms.html"
|
|
},
|
|
{
|
|
"source": "/terms.html",
|
|
"destination": "/terms.html"
|
|
},
|
|
{
|
|
"source": "/manifest.json",
|
|
"destination": "/manifest.json"
|
|
},
|
|
{
|
|
"source": "/sw.js",
|
|
"destination": "/sw.js"
|
|
},
|
|
{
|
|
"source": "/((?!privacy|terms|manifest\\.json|sw\\.js|.*\\.(?:png|jpg|jpeg|svg|ico|json|js|css|webmanifest)).*)",
|
|
"destination": "/index.html"
|
|
}
|
|
]
|
|
} |