AnsweredAssumed Answered

Is using a cookie a good way to check if an app has been updated and needs to be refreshed from the server?

Question asked by alterwiel on Mar 10, 2016
Latest reply on Aug 23, 2018 by andrewhayden

When an app has been updated and re-published, a browser will load the files from the cache and not the server. This means each user needs to manually clear the cache and refresh. I thought about having a "refresh" widget that creates a cookie with a version number as the name, and then on subsequent page loads, reading the name and comparing it to a variable to determine if the app has been updated. If the version number is different then execute this:

 

document.location.reload(true);

 

Does anyone have a better idea?

Outcomes