vscode-live-server icon indicating copy to clipboard operation
vscode-live-server copied to clipboard

Support live reloading on 404 page

Open MaddyGuthridge opened this issue 1 year ago • 0 comments

I'm submitting a...

[ ] Regression (a behavior that used to work and stopped working in a new release)
[ ] Bug report  <!-- Please search GitHub for a similar issue or PR before submitting -->
[X] Feature request
[ ] Documentation issue or request
[ ] Other: <!-- Please describe: -->

Current behavior

Currently, if an HTML page isn't found, a simple 404 page is served instead. However, this page does not support live reloading, so if the page is created, it will remain on the 404 page.

This is important for my use case, as I use a simple script to build documentation for a library I maintain. When I run this script, it will temporarily delete the documentation directory, resulting in Live Server reloading only to get a 404. When the new build is written, the 404 page does not reload.

Expected behavior

When attempting to navigate to a page that does not exist, return a 404 page that has the same logic for live reloading.

Environment

Browser:

- [ ] Chrome (desktop) version XX
- [X] Firefox version 122
- [ ] Safari (desktop) version XX
- [ ] IE version XX
- [ ] Edge version XX

For Tooling issues:

- Live Server: v5.7.9
- Platform:  Windows, Linux
- Visual Studio Code: 1.85.1

Others

Thanks <3

MaddyGuthridge avatar Jan 14 '24 11:01 MaddyGuthridge