Static GitHub Issues

[2796] nuxtServerInit running on every time index page is reload

prev: nuxt.js on shared hosting
next: 404 errors on dist files in SSR mode

I just realized that nuxtServerInit is run everytime index page is loaded. Is that supposed to be the case?

I would think that server init means it only run once during the whole session. We are using nuxtServerInit to grab a lot of data from the api and having it run everytime we navigate to index page is really slow.

Am I using it wrong?

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This question is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c2425">#c2425</a>)</em></sub></div>