Closed tomsquest closed 4 years ago
You cannot reload on a backend change, but the backend change usually results in an updated source file URL and you could monitor that file.
Hi Blaise,
Yes, that was I am aiming at : reloading when the source change.
For info, I have a Go backend that produce html, which is reloaded on change (inotifywait
magic).
In the screenshot above, I tried with http://localhost:4200/search/products/
(which was the url of my browser). But this was not working. Same with a trailing *
, with or without the trailing /
.
Is there something special to do ?
Thanks a lot.
So you want to update the page when the page itself is updated?
Does Host URL: http://localhost:4200/*
, Source file URL: http://localhost:4200/*
work for you?
No, the page is not updated on html change with this config. Css is.
2
corresponding to the 2 css files loaded with the page.Is there a way to report the monitored resources in Firefox ?
Thanks Blaise.
I probably broke monitoring the page itself in 1.8.0, I’ll fix that this week.
On 31 Mar 2020, at 07:14, Thomas Queste notifications@github.com wrote:
No, the page is not updated on html change with this config. Css is.
There is the badge with value 2 corresponding to the 2 css files loaded with the page. Here are the network call after a page reload, 3 resources (one html, 2 css) :
Updated version to 1.8.1 and accepted the permission change (and restarted Firefox) Is there a way to report the monitored resources in Firefox ?
Thanks Blaise.
— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or unsubscribe.
@tomsquest I fixed this in Live Reload 1.8.2. If a source URL matches the host URL the page will monitor itself. Can you confirm it works?
Hi @blaise-io ,
It works with 1.8.2 !
Thanks a lot for the work (I read a bit of the code and there is much more that I thought !).
Regards, Tom
Hi @blaise-io ,
It is documented that, yes, live-reload can reload the page on backend change. And I did success to do that some weeks/months ago But as of today, I am not able to reload on backend change (not css, nor js).
How to reproduce
localhost:4200/*
, also tried with an additionallocalhost:4200/search/products
(see screenshot)Config:
Infos