kopia lustrzana https://github.com/badgen/badgen.net
Add stale control header to statics
rodzic
349e78f41b
commit
c017a40fd5
2
index.ts
2
index.ts
|
@ -28,7 +28,7 @@ const serveStaticHeaders = [
|
|||
source: "**/*",
|
||||
headers: [{
|
||||
key: "Cache-Control",
|
||||
value: "public, max-age: 86400, s-maxage: 86400"
|
||||
value: "public, max-age=86400, s-maxage=86400, stale-while-revalidate=86400"
|
||||
}]
|
||||
}
|
||||
]
|
||||
|
|
Ładowanie…
Reference in New Issue