Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add cache control header for prefetch empty responses (#54732)
Fix #45301 If you deploy Next.js with in front Cloudflare, empty prefetch responses will be cached because there is no `cache-control` header and the extension is .json, Cloudflare considers these requests cacheable assets If you want a test for this I would like to know if there is an existing one where I can add the header check
- Loading branch information