From 2175be27b0ceac691f711d7c45994ce97aaa0267 Mon Sep 17 00:00:00 2001 From: saqimtiaz Date: Fri, 27 Nov 2020 22:37:11 +0100 Subject: [PATCH] Ensure that we always fetch the latest sha bypassing cache. (#5126) Ensure that we always fetch the latest sha bypassing cache. --- core/modules/savers/github.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/modules/savers/github.js b/core/modules/savers/github.js index 2d59f45ff..2276a2346 100644 --- a/core/modules/savers/github.js +++ b/core/modules/savers/github.js @@ -31,7 +31,8 @@ GitHubSaver.prototype.save = function(text,method,callback) { headers = { "Accept": "application/vnd.github.v3+json", "Content-Type": "application/json;charset=UTF-8", - "Authorization": "Basic " + window.btoa(username + ":" + password) + "Authorization": "Basic " + window.btoa(username + ":" + password), + "If-None-Match": "" }; // Bail if we don't have everything we need if(!username || !password || !repo || !filename) {