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

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

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

Last synced: about 1 year 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`.