We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 45a7c1b commit 6a17b1fCopy full SHA for 6a17b1f
supabase/functions/_backend/files/files.ts
@@ -147,6 +147,9 @@ async function getHandler(c: Context): Promise<Response> {
147
function objectHeaders(object: R2Object): Headers {
148
const headers = new Headers()
149
object.writeHttpMetadata(headers)
150
+ // Prevent CDN transformations (auto-minify, email obfuscation, etc.) that modify
151
+ // bytes in transit, breaking checksum verification on devices.
152
+ headers.set('cache-control', 'no-transform')
153
headers.set('etag', object.httpEtag)
154
155
// the sha256 checksum was provided to R2 in the upload
0 commit comments