This commit is contained in:
EGOIST 2022-05-15 01:51:04 +08:00
parent 71c8c7e268
commit d0d76cfbdd
1 changed files with 1 additions and 1 deletions

View File

@ -53,7 +53,7 @@ const handler: ExportedHandler<{ BUCKET: R2Bucket; ENCRYPT_SECRET: string }> = {
}
const response = new Response(object.body, {
headers: {
"Cache-Control": "s-maxage=31536000",
"Cache-Control": "public, max-age=31536000, immutable",
},
})
event.waitUntil(cache.put(request, response.clone()))