laconic-wallet-web/stack/stack-orchestrator/config/app/serve.json
Nabarun f47850ebfa Fix cache headers for index html file (#28)
Part of <https://www.notion.so/Gentx-like-attestation-mechanism-to-add-validators-at-genesis-time-19da6b22d47280ecbf1fe657c241ff59>

- Use serve package for controlling separate cache headers for files

Reviewed-on: #28
Co-authored-by: Nabarun <nabarun@deepstacksoft.com>
Co-committed-by: Nabarun <nabarun@deepstacksoft.com>
2025-05-02 08:23:22 +00:00

23 lines
412 B
JSON

{
"headers": [
{
"source": "/index.html",
"headers": [
{
"key": "Cache-Control",
"value": "no-cache, must-revalidate"
}
]
},
{
"source": "/static/**/*.{js,css,png,jpg,jpeg,gif,svg,ico}",
"headers": [
{
"key": "Cache-Control",
"value": "public, max-age=31536000, immutable"
}
]
}
]
}