Update send to v0.18.0 (#78816)
### Why? Currently, Next.js uses a precompiled version of send under `next/dist/compiled/send`, which is based on an outdated version. This older version omits headers like Content-Security-Policy (CSP) when returning a 304, even if those headers were present in the initial 200 response. As a result, CSP headers are either missing entirely or fallback to default CDN-level policies in cached responses. This behavior causes security issues or inconsistent enforcement in strict CSP environments. ### What? This PR upgrades the internal `send` package used in static asset serving to the latest official version (v1.2.0), which includes proper handling of headers in 304 Not Modified responses. Fixes #78815
Showing
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
This source diff could not be displayed because it is too large.
You can
view the blob
instead.
Please
register
or
sign in
to comment