Skip to content

Commit

Permalink
Bypass caching of minecraft version data
Browse files Browse the repository at this point in the history
  • Loading branch information
booky10 committed Jul 6, 2023
1 parent 471b3c3 commit ba7450b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion web/src/main/resources/public/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function tryFixInputUrl() {

function loadVersions() {
const req = new XMLHttpRequest();
req.open("GET", "/mc_versions.json", true);
req.open("GET", `/mc_versions.json?t=${Date.now()}`, true);
req.onreadystatechange = () => {
if (req.readyState != 4) {
return;
Expand Down

0 comments on commit ba7450b

Please sign in to comment.