feat: update caching strategy for blog routes to prevent stale HTML issues

This commit is contained in:
mahdiarghyani
2025-12-14 14:09:03 +03:30
parent c6b09fabc9
commit 4141593875
2 changed files with 50 additions and 5 deletions
+36
View File
@@ -18,6 +18,42 @@
"value": "public, max-age=31536000, immutable"
}
]
},
{
"source": "/blog",
"headers": [
{
"key": "cache-control",
"value": "no-store"
}
]
},
{
"source": "/blog/(.*)",
"headers": [
{
"key": "cache-control",
"value": "no-store"
}
]
},
{
"source": "/fa/blog",
"headers": [
{
"key": "cache-control",
"value": "no-store"
}
]
},
{
"source": "/fa/blog/(.*)",
"headers": [
{
"key": "cache-control",
"value": "no-store"
}
]
}
]
}