Files
meteor/packages/reload
Martijn Walraven 5e9090c3ee Use location.replace() instead of location.reload() to avoid unnecessary asset validation
If a cached version of an asset is still fresh (depending on the `max-age`), there
is no need to send even a conditional request. Because `location.reload()` for
some reason does force validation, it makes sense to use `location.replace` instead
and improve reloading performance by avoiding unnecessary requests.
2016-01-08 13:21:29 +01:00
..
2013-07-25 18:54:42 -07:00
2014-09-26 23:03:20 -07:00

reload

The reload package handles the process of migrating an app: serializing the app's state, then shutting down and restarting the app (for example, to load updated client code or to move the client session from one JavaScript virtual machine to another), and finally restoring its state.

Packages that want to participate in the migration process register with reload. They can make the migration process wait until they are ready and include whatever state they may possess in the serialization and deserialization process.

reload is part of the Webapp project.