should Link prefetch also fetch the page json? #11578
-
Link component prefetches by default the page javascript |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 11 replies
-
If the page uses getStaticProps the data is prefetched. When you use getServerSideProps it is not as it would increase server load. |
Beta Was this translation helpful? Give feedback.
-
I don't see that behavior in firefox 74, onHover only fetches the .js. This in the production build. |
Beta Was this translation helpful? Give feedback.
-
is the firefox behavior a known and intentional one or a bug?
|
Beta Was this translation helpful? Give feedback.
-
I think it would be nice to be able to toogle this in next.config.js for getServerSideProps. Because we have a CDN in front of next. So it would only once cause a big load to the server and further requests would be server by the CDN. |
Beta Was this translation helpful? Give feedback.
If the page uses getStaticProps the data is prefetched. When you use getServerSideProps it is not as it would increase server load.