mirror of
https://github.com/Kizuren/statusPage.git
synced 2025-12-21 21:16:09 +01:00
For no-cache when reloading status.json
This commit is contained in:
parent
4ee25b38e5
commit
8b32915a90
1 changed files with 1 additions and 1 deletions
|
|
@ -5,7 +5,7 @@ document.addEventListener("DOMContentLoaded", async () => {
|
||||||
let $main = document.querySelector('main');
|
let $main = document.querySelector('main');
|
||||||
const refreshStatus = async () => {
|
const refreshStatus = async () => {
|
||||||
try {
|
try {
|
||||||
const response = await fetch('./status.json');
|
const response = await fetch('./status.json', {cache: "no-cache"});
|
||||||
if (!response.ok) {
|
if (!response.ok) {
|
||||||
throw new Error(`Error fetching status.json: ${response.statusText}`);
|
throw new Error(`Error fetching status.json: ${response.statusText}`);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue