Static GitHub Issues

[2041] Browser Back Button calls asyncData on static generated site

prev: Cannot find module '~components/common/header/header.vue'.
next: [ask] 1.0 about the release of what time?

Background

  • I couldn't find anyone that has this issue (correct me if i'm wrong)

When i paste the url (E.g www.url.com/page1) in the browser and press Enter button, the page loads fine and there were no network calls.

When i visit the homepage (www.url.com) and click on Chrome browser "Back" button, the page takes longer to load and the network logs show that asyncData was called as i can see my apis in asyncData in the network log.

  • Is this a known behaviour of nuxt or vue-router?
  • And how can i stop this unnecessary load for a static generated site?
<!--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/c1810">#c1810</a>)</em></sub></div>