You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
What's the goal of X-version here? What happens if I don't define it?
How does this cache implementation works? I don't understand how defining a 1s cache can change anything performance-wise.
Basically, considering I have a Next.js app which does SSR (fetching content from a headless CMS in _app:getInitialProps), what would happen if I just add those two lines in _app/getInitialProps?
The text was updated successfully, but these errors were encountered:
Just dug into this, the cache control header just signals the CDN to cache the whole page as stated in the blog post. The X-version header & etag are not needed unless you want to refresh the page client-side when the displayed page is out of date.
I've read https://zeit.co/blog/serverless-pre-rendering and I'm interested by SPR, but I don't fully understand how it works.
AFAIU, everything is done there https://github.com/zeit/spr-landing/blob/master/pages/index.js#L177-L180
Few questions:
X-version
here? What happens if I don't define it?_app:getInitialProps
), what would happen if I just add those two lines in_app/getInitialProps
?The text was updated successfully, but these errors were encountered: