Closed JarrodMFlesch closed 2 days ago
Adds the ability to set response headers by using a new uploads.modifyResponseHeaders property. You could previously do this in Express in Payload v2.
uploads.modifyResponseHeaders
You can do this like so:
upload: { modifyResponseHeaders: ({ headers }) => { headers.set('Cache-Control', 'public, max-age=86400') return headers } },
Description
Adds the ability to set response headers by using a new
uploads.modifyResponseHeaders
property. You could previously do this in Express in Payload v2.You can do this like so:
Type of change
Checklist: