'default cache-control headers in nextjs SSR
I have nextjs app. If I add getServerSideProps export to the page (this means that page will be server side rendered, read more) nextjs adds cache-control header:
cache-control: private, no-cache, no-store, max-age=0, must-revalidate
But according to this documentation these are conflicting headers and in theory it should be the same as no-store header. Citing the acticle:
# conflicted
Cache-Control: private, no-cache, no-store, max-age=0, must-revalidate
# equivalent to
Cache-Control: no-store
Is there any reason these multiple headers are used instead of simply using no-store?
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
