What does window.location.Reload do?

Asked

Viewed 9,223 times

3

I have a question about window.location.reload(true).

Him with the parameter true, really updates the site, downloading all the files again, without using the cache? Or just update the site normally?

1 answer

7


According to documentation from MDN, this parameter is called forceReload.

Syntax: window.location.reload(forcedReload);

forcedReload: It is a Boolean flag, which when true, makes the page always be server reloaded, if false or not set, browser can reload the cache page.

Behold:

Documentation on location.reload().

  • In case what will be true or false in the parameter will be this forcedReload?

  • My stupid question, that’s right. Thank you, Wallace! When the 6min comes I mark as right!

Browser other questions tagged

You are not signed in. Login or sign up in order to post.