Request a json file and set the proper cache-control header

[ci skip]
This commit is contained in:
Jose Diaz-Gonzalez
2016-03-08 21:03:08 -05:00
parent 8bf666f56d
commit f385efbbfc
2 changed files with 2 additions and 1 deletions

View File

@@ -287,7 +287,8 @@
};
var request = new XMLHttpRequest();
request.open('GET', '/dokku/assets/versions.raw/', true);
request.open('GET', '/dokku/assets/versions.json', true);
request.setRequestHeader("Cache-Control", "no-cache, no-store");
request.onload = function() {
if (request.status >= 200 && request.status < 400) {