Serving Single-Page Applications in Go
Someone may ask what is so special about serving single-page applications? Well, if you use hash (#) based URL’s like <em>https://yourdomain.com/#/yourroute</em> , there is no problem because browser recognize that this is a default page with some parameters and doesn’t make another request to the server. However, if you want to use non-hash based routes, there is a problem if you try to refresh a non-default route. In this case browser’s default action is to load such URL from the server and there is no such document on the server....