mirror of
https://github.com/mmahdium/portfolio.git
synced 2026-09-28 02:21:41 +03:30
feat: update caching strategy for blog routes to prevent stale HTML issues
This commit is contained in:
+36
@@ -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"
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user