mirror of
https://github.com/protomaps/PMTiles.git
synced 2026-02-04 02:41:09 +00:00
cloudflare: set CACHE_MAX_AGE default.
This commit is contained in:
@@ -160,7 +160,10 @@ export default {
|
||||
cacheable_headers: Headers,
|
||||
status: number
|
||||
) => {
|
||||
cacheable_headers.set("Cache-Control", "max-age=" + env.CACHE_MAX_AGE);
|
||||
cacheable_headers.set(
|
||||
"Cache-Control",
|
||||
"max-age=" + (env.CACHE_MAX_AGE | 86400)
|
||||
);
|
||||
let cacheable = new Response(body, {
|
||||
headers: cacheable_headers,
|
||||
status: status,
|
||||
|
||||
Reference in New Issue
Block a user