From f385efbbfc2570150b71d3879e51177c0430f7e0 Mon Sep 17 00:00:00 2001 From: Jose Diaz-Gonzalez Date: Tue, 8 Mar 2016 21:03:08 -0500 Subject: [PATCH] Request a json file and set the proper cache-control header [ci skip] --- docs/assets/{versions.raw => versions.json} | 0 docs/template.html | 3 ++- 2 files changed, 2 insertions(+), 1 deletion(-) rename docs/assets/{versions.raw => versions.json} (100%) diff --git a/docs/assets/versions.raw b/docs/assets/versions.json similarity index 100% rename from docs/assets/versions.raw rename to docs/assets/versions.json diff --git a/docs/template.html b/docs/template.html index c1303c225..394e2b49b 100644 --- a/docs/template.html +++ b/docs/template.html @@ -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) {