rsnext/docs
Steven ec4df71352
Fix Image Optimization cache-control regression with external images (#37625)
In a previous PR (#34075), the ISR behavior was introduced to the Image Optimization API, however it changed the cache-control header to always set maxage=0. While this is probably the right behavior (the client shouldn't cache the image), it introduced a regression for users who have CDNs in front of a single Next.js instance (as opposed to [multiple Next.js instances](https://nextjs.org/docs/basic-features/data-fetching/incremental-static-regeneration#self-hosting-isr)).

Furthermore, the pros of client-side caching outweight the cons because its easy to change the image url (add querystring param for example) to invalidate the cache.

This PR reverts the cache-control behavior until we can come up with a better long-term solution.

- Fixes #35987
- Related to #19914 
- Related to #22319 
- Closes #35596
2022-06-13 22:13:55 +00:00
..
advanced-features docs: fix usage in middleware errors (#37364) 2022-06-01 12:03:07 +00:00
api-reference Fix Image Optimization cache-control regression with external images (#37625) 2022-06-13 22:13:55 +00:00
api-routes docs: Add pageExtensions usage note in API Routes (#35918) 2022-05-22 17:46:00 +00:00
basic-features Add note about NEXT_DATA hydration (#37480) 2022-06-06 21:46:38 +00:00
guides Few touch-ups to the docs on web forms in Next (#34286) 2022-02-14 20:21:27 +00:00
migrating Add instructions to create pages directory and add an index.js file to it (#35971) 2022-04-15 14:40:37 +02:00
routing Update shallow routing caveat (#35052) 2022-03-07 23:29:07 +00:00
authentication.md Alphabetize auth docs providers. (#34281) 2022-02-13 00:51:53 +00:00
deployment.md Update deployment documentation. (#37571) 2022-06-08 20:46:09 +00:00
faq.md fix: change showcase url (#34590) 2022-02-19 22:33:32 +00:00
getting-started.md Update pnpm create next-app for latest pnpm 6 and 7 (#37254) 2022-05-27 21:21:40 +00:00
going-to-production.md [docs] Update going to production docs around caching headers (#35374) 2022-03-16 22:11:06 +00:00
manifest.json Move CI build cache instructions to Deployment docs (#35418) 2022-05-13 09:56:47 -04:00
testing.md Update testing.md (#29954) 2022-05-23 01:07:20 +00:00
upgrading.md Update upgrading.md (#36091) 2022-04-15 14:43:26 +02:00