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
- Host: GitHub
- URL: https://github.com/wavebeem/vercel-enterprise-case-46899
- Owner: wavebeem
- Created: 2021-10-06T19:03:50.000Z (over 4 years ago)
- Default Branch: main
- Last Pushed: 2021-11-12T19:13:04.000Z (over 4 years ago)
- Last Synced: 2025-06-20T19:10:40.128Z (about 1 year ago)
- Language: JavaScript
- Homepage: vercel-enterprise-case-46899.vercel.app
- Size: 74.2 KB
- Stars: 0
- Watchers: 2
- 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`.