Skip to content

Commit

Permalink
added unique query param to bypass browser cache. (#562)
Browse files Browse the repository at this point in the history
  • Loading branch information
johanna-skylight authored Jul 11, 2023
1 parent 1feb1c1 commit 868c5e6
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion _includes/scripts.html
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
<!-- Script for getting current maintenance mode status -->
<script type="text/javascript">
(async function getMaintenanceMode() {
const maintenance = await fetch("/maintenance.json");
const maintenanceUrl = `/maintenance.json?v=${Date.now()}`;
const maintenance = await fetch(maintenanceUrl);
try {
const maintenanceJSON = await maintenance.json();
if (maintenanceJSON.active) {
Expand Down

0 comments on commit 868c5e6

Please sign in to comment.