next.js
250370a0 - Ensure pages/500 handles cache-control as expected (#72050)

Commit
1 year ago
Ensure pages/500 handles cache-control as expected (#72050) When `pages/500` uses `getStaticProps` we can honor statically generating the page but we can't send a `Cache-Control` with `stale-while-revalidate` as we shouldn't be caching errored pages ever. This ensures we handle that case and add a regression test for it.
Author
Parents
Loading