feat: add Cache-Control header to public file serving (#2099)

This commit is contained in:
Jonas Höbenreich
2024-02-22 15:36:19 +01:00
committed by GitHub
parent 7f21e65625
commit 61ca42eb83
@@ -16,6 +16,8 @@ const getFile = async (environmentId: string, accessType: string, fileName: stri
headers: {
"Content-Type": metaData.contentType,
"Content-Disposition": "attachment",
"Cache-Control": "public, max-age=1200, s-maxage=1200, stale-while-revalidate=300",
Vary: "Accept-Encoding",
},
});
} catch (err) {