BrowserSync / browser-sync

Keep multiple browsers & devices in sync when building websites. https://browsersync.io
https://discord.gg/2d2xUThp
Apache License 2.0
12.14k stars 754 forks source link

BrowserSync reloads the page displaying `index.html` even though I trigger a reload for the file `other.html` #2056

Open ericmorand opened 6 months ago

ericmorand commented 6 months ago

I have two files in the directory served by BrowserSync under the port 3000: index.html and other.html.

Assuming my browser displays the page at the URL http://localhost:3000/index.html, reloading other.html actually triggers a reload of the currently displayed browser page:

browserSyncInstance.reload('other.html');

I expect that it doesn't reload at all since the displayed URL is not served by the file that I requested BrowserSync to reload.