Home

Issue: 2041

Browser Back Button calls asyncData on static generated site

[issue link]

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?
This question is available on Nuxt.js community (#c1810)