"What's the best way to reload a web page using JavaScript?"
Hey folks! ๐ So Iโve been messing around with reload web page javascript stuff, and Iโm kinda stuck.
I know `location.reload()` works, but sometimes it feels like overkill? Like, does it always fetch fresh from the server, or can it use cache?
Also, what about `window.location.href = window.location.href`? Does that even do the same thing? Or is there a smarter way?
And why does my reload web page javascript code sometimes just... not work? ๐ Am I missing something obvious?
Would love to hear how yโall handle this. Cheers! ๐
Hey folks! ๐ So Iโve been messing around with reload web page javascript stuff, and Iโm kinda stuck.
I know `location.reload()` works, but sometimes it feels like overkill? Like, does it always fetch fresh from the server, or can it use cache?
Also, what about `window.location.href = window.location.href`? Does that even do the same thing? Or is there a smarter way?
And why does my reload web page javascript code sometimes just... not work? ๐ Am I missing something obvious?
Would love to hear how yโall handle this. Cheers! ๐
