Skip to content

Commit 0c1a130

Browse files
authored
add cache busting (#441)
1 parent 84390de commit 0c1a130

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

defaults/config.ini.default

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; DO NOT EDIT THIS FILE. Instead make a config.ini file in the config folder.
33
;
44
[upstream]
5-
version = "1.3.1" ; Current upstream version of the web portal
5+
version = "1.5.1" ; Current upstream version of the web portal
66
repo = "https://github.com/UnityHPC/unity-web-portal" ; Upstream URL for the web portal
77

88
[site]

resources/templates/footer.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
</body>
3232
<?php
3333
foreach (["filter", "sort", "global", "tables", "messages"] as $x) {
34-
$url = getURL("js/$x.js");
34+
$url = getURL("js/$x.js?v=" . CONFIG["upstream"]["version"]);
3535
echo "<script src='$url'></script>";
3636
}
3737
?>

resources/templates/header.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@
5252

5353
<?php
5454
foreach (["global", "navbar", "modal", "tables", "filters", "messages"] as $x) {
55-
$url = getURL("css/$x.css");
55+
$url = getURL("css/$x.css?v=" . CONFIG["upstream"]["version"]);
5656
echo "<link rel='stylesheet' type='text/css' href='$url'>";
5757
}
5858
?>

0 commit comments

Comments
 (0)