10
0
mirror of https://github.com/LCPQ/QUESTDB_website.git synced 2024-11-04 13:13:55 +01:00

Merge branch 'master' into QUEST2

This commit is contained in:
Mickaël Véril 2020-03-26 17:45:14 +01:00
commit 33cd88d8bb

View File

@ -1,8 +1,10 @@
async function getTextFromFileUrlAsync(url) { async function getTextFromFileUrlAsync(url) {
return new Promise(function (resolve, reject) { return new Promise(function (resolve, reject) {
var req = new XMLHttpRequest(); var req = new XMLHttpRequest();
req.setRequestHeader("Cache-Control: no-cache, no-store, must-revalidate")
req.open("GET",url, true); req.open("GET",url, true);
for (const item of ["no-cache","no-store","must-revalidate"]) {
req.setRequestHeader("Cache-Control",item)
}
req.onreadystatechange = function() { req.onreadystatechange = function() {
if (req.readyState == 4) { if (req.readyState == 4) {
if (req.status == 200) {//when a good response is given do this if (req.status == 200) {//when a good response is given do this