Ecosyste.ms: Awesome
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: 18 days ago
JSON representation
Vercel enterprise case 46899
- Host: GitHub
- URL: https://github.com/wavebeem/vercel-enterprise-case-46899
- Owner: wavebeem
- Created: 2021-10-06T19:03:50.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2021-11-12T19:13:04.000Z (about 3 years ago)
- Last Synced: 2024-11-30T21:34:17.554Z (22 days ago)
- Language: JavaScript
- Homepage: vercel-enterprise-case-46899.vercel.app
- Size: 74.2 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
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`.