Skip to content

QuizNot attempted

Old tab, visited route

Same situation, but the user goes back to a page they already opened before the deploy. What happens?
1–4 to choose, Enter to submit
Show answer & explanation

Correct answer:

  • It works: that module was already loaded and stays in memory for the life of the page
  • Once a module has been loaded, the page keeps it in its module map
  • importing it again doesn't touch the network.
  • That's why old tabs mostly keep working after a deploy and only break on code they haven't loaded yet.
  • Not 404: there's no request.
  • Not "the new version": the tab keeps running its old code.
  • Not "only if in the disk cache": the module is already in memory, so the HTTP cache doesn't matter.