Cloudflare Pages Cache Control fo Gatsby

Is there any way (easy way) to setup Cache Control for Gatsby?
for example gatsby recommend this cache setup (firebase.json config example):

“headers”: [
{
“source”: “/*",
“headers”: [
{
“key”: “cache-control”,
“value”: “public, max-age=0, must-revalidate”
}
]
},
{
“source”: "static/
”,
“headers”: [
{
“key”: “cache-control”,
“value”: “public, max-age=31536000, immutable”
}
]
},
{
“source”: “/*[email protected](css|js)",
“headers”: [
{
“key”: “cache-control”,
“value”: “public, max-age=31536000, immutable”
}
]
},
{
“source”: “sw.js”,
“headers”: [
{
“key”: “cache-control”,
“value”: “public, max-age=0, must-revalidate”
}
]
},
{
“source”: "page-data/
”,
“headers”: [
{
“key”: “cache-control”,
“value”: “public, max-age=0, must-revalidate”
}
]
}
]

This topic was automatically closed 5 days after the last reply. New replies are no longer allowed.