Procházet zdrojové kódy

Bypass cache on distance

master
The Dod před 10 měsíci
rodič
revize
6b90b024e6
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      templates/index.html

+ 1
- 1
templates/index.html Zobrazit soubor

67
   });
67
   });
68
   async function getDistance() {
68
   async function getDistance() {
69
     try {
69
     try {
70
-      let response = await fetch("/d");
70
+      let response = await fetch("/d", {cache: "no-store"});
71
       let data = await response.json();
71
       let data = await response.json();
72
       return data.distance;
72
       return data.distance;
73
     } catch {
73
     } catch {

Načítá se…
Zrušit
Uložit