What are the prons and cons of hash and history mode of routing?

vue-router

#1

#2

hash-based routing works by only considering the part of the URL starting with the # character, which I’ll refer to as the hash . This vastly simplifies things for a few reasons:

  • The server never sees the hash, meaning it is handled 100% in-browser
  • Changes to the hash do not by default result in page reloads
  • Buttons and links are just plain old javascript-free <a> tags

That’s what I have