Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/wavebeem/vercel-enterprise-case-46899

Vercel enterprise case 46899
https://github.com/wavebeem/vercel-enterprise-case-46899

Last synced: 18 days ago
JSON representation

Vercel enterprise case 46899

Awesome Lists containing this project

README

        

# Vercel Enterprise Case 46899

Open the browser developer tools and note that with caching disabled, you are always served a 200 OK response. With caching on, subsequent requests receive a 304 Not Modified response, allowing the browser to use its cached data.

The problem here is that the serverless function response has a _dynamic_ `Content-Security-Policy` (CSP), but the 304 No Content response returns the _static_ CSP specified in `next.config.js`.