-
Notifications
You must be signed in to change notification settings - Fork 16
Description
Right now if a .html file is not found devserver returns a 404, but it would be more easily noticed if a 404.html page were served.
Additionally with the current behavior if a page is quickly removed and then it's possible that devserver will refresh in the middle and return a 404 breaking development flow. A proper 404.html page would have the embedded reload script and so it would properly refresh to the final page.
A partial mitigation was proposed and implemented in this issue: #11. This mitigation does not fully solve the issue. If File A is deleted then added and File B is modified then File A could still return a 404 and the browser returns a page without the refresh script.
Many users developing static websites may have their own custom 404 page. A brief survey of existing development servers should be done to learn what the status quo for serving 404 pages is. Do they offer a flag to specify the path to the 404 file?