What's the best way to use JS to refresh the page? or How can I force a page refresh with JS?

20 Replies, 910 Views

if `location.reload(true)` isn’t working, maybe the script isn’t executing?

try putting `console.log('test')` right before it to see if it runs.

also, yeah, cache can mess with it—adding a random query param like `?t=${Date.now()}` to the url forces a fresh load.

Messages In This Thread



Users browsing this thread: 1 Guest(s)