monkeytype/frontend/firebase.json

106 lines
2.2 KiB
JSON
Raw Normal View History

2020-05-09 08:29:47 +08:00
{
"hosting": {
"public": "public",
2020-08-12 05:02:25 +08:00
"ignore": ["firebase.json", "**/.*", "**/node_modules/**"],
"rewrites": [
2020-11-01 02:03:28 +08:00
{
"source": "/privacy-policy",
"destination": "/privacy-policy.html"
},
{
"source": "/terms-of-service",
"destination": "/terms-of-service.html"
},
{
"source": "/security-policy",
"destination": "/security-policy.html"
},
{
"source": "/adtest",
"destination": "/adtest.html"
},
2020-08-12 05:02:25 +08:00
{
"source": "**",
"destination": "/index.html"
}
2020-05-09 08:29:47 +08:00
],
"cleanUrls": true,
2021-11-13 01:13:10 +08:00
"trailingSlash": false,
"headers": [
{
"source": "**/*",
"headers": [
{
"key": "Content-Security-Policy",
"value": "frame-ancestors 'none'"
},
{ "key": "X-Frame-Options", "value": "DENY" }
]
},
{
2022-10-09 08:01:40 +08:00
"source": "/**",
2022-10-09 06:22:34 +08:00
"headers": [
{
"key": "Cache-Control",
2022-10-09 08:01:40 +08:00
"value": "no-cache, no-store, must-revalidate"
2022-10-09 06:22:34 +08:00
}
]
},
{
2022-12-03 02:50:48 +08:00
"source": "**/*.@(jpg|jpeg|gif|png|svg)",
2022-10-09 06:22:34 +08:00
"headers": [
{
"key": "Cache-Control",
2022-12-03 02:50:48 +08:00
"value": "max-age=31536000"
2022-10-09 06:22:34 +08:00
}
]
},
2022-10-10 02:52:34 +08:00
{
2022-12-03 02:50:48 +08:00
"source": "**/*.@(eot|otf|ttf|ttc|woff|woff2)",
2022-10-10 02:52:34 +08:00
"headers": [
{
"key": "Cache-Control",
2022-12-03 02:50:48 +08:00
"value": "max-age=31536000"
}
]
},
{
"source": "**/*.@(json|wav|txt|css)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=3600"
}
]
},
{
"source": "**/*.min.@(js|css)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=31536000"
}
]
},
{
"source": "**/*.????????.@(js|css)",
"headers": [
{
"key": "Cache-Control",
"value": "max-age=31536000"
2022-10-10 02:52:34 +08:00
}
]
},
2022-10-09 06:22:34 +08:00
{
"source": "/service-worker.js",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache, no-store, must-revalidate"
}
]
2021-11-13 01:13:10 +08:00
}
]
2020-05-09 08:29:47 +08:00
}
2020-08-12 05:02:25 +08:00
}