What does window.location.reload do?

2

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

It with the true parameter, does it actually update the site, downloading all the files again, without using the cache? Or just update the site normally?

    
asked by anonymous 19.09.2017 / 20:19

1 answer

4

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

  

Syntax:    window.location.reload(forcedReload);

     

forcedReload : This is a Boolean flag, which when true, causes the page to always be   reloaded from the server, if it is false or not set, the browser   you can reload the cache page.

See:

Documentation on location.reload() .

    
19.09.2017 / 20:23