From 5b468647bf51374c4d90ec5a36e1b1c5a4112ed5 Mon Sep 17 00:00:00 2001
From: laurentheirendt <laurent.heirendt@uni.lu>
Date: Thu, 25 Jun 2020 15:26:58 +0200
Subject: [PATCH] proposal to set no cache in headers

---
 assets/js/router.js | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/assets/js/router.js b/assets/js/router.js
index 62b178b8..737e5656 100644
--- a/assets/js/router.js
+++ b/assets/js/router.js
@@ -3,10 +3,14 @@ function UrlExists(url, cb) {
         url:      url,
         dataType: 'text',
         type:     'GET',
-        cache:    false,
         complete:  function(xhr){
             if(typeof cb === 'function')
             cb.apply(this, [xhr.status]);
+        },
+        headers: {
+            'Cache-Control': 'no-cache, no-store, must-revalidate',
+            'Pragma': 'no-cache',
+            'Expires': '0'
         }
     });
 }
-- 
GitLab