sourcegraph / checkup

Distributed, lock-free, self-hosted health checks and status pages
https://sourcegraph.github.io/checkup
MIT License
3.42k stars 248 forks source link

scripts: add timestamp to bust the cache to retrieve latest updates #118

Closed DanielRuf closed 4 years ago

DanielRuf commented 4 years ago

On GitHub Pages the files are often so good cached that old / stale data is still retrieved and not the latest version of index.json.

Even a reload with the "disable cache" option enabled in the network settings of the browser developer tools does not help in most cases.

Thus we have to bust the cache for every load by adding a timestamp in this case.

There are also other solutions but these would affect all AJAX calls and this solution busts the cache for only the index.json file.

This PR closes #117

titpetric commented 4 years ago

LGTM @beyang