diff --git a/admin/hours.php b/admin/hours.php
index 582800e..2ba64e7 100644
--- a/admin/hours.php
+++ b/admin/hours.php
@@ -2,6 +2,7 @@
declare(strict_types=1);
require_once __DIR__ . '/../inc/auth.php';
+require_once __DIR__ . '/../inc/assets.php';
require_once __DIR__ . '/../inc/hours.php';
require_auth();
@@ -72,7 +73,7 @@ $justSaved = !$_POST && isset($_GET['saved']);
-
+
diff --git a/admin/index.php b/admin/index.php
index 600045b..5cd1495 100644
--- a/admin/index.php
+++ b/admin/index.php
@@ -1,5 +1,6 @@
-
+
diff --git a/admin/login.php b/admin/login.php
index 867f1ba..78b6636 100644
--- a/admin/login.php
+++ b/admin/login.php
@@ -1,5 +1,6 @@
-
+
diff --git a/admin/menu.php b/admin/menu.php
index 4bbc324..3f1a555 100644
--- a/admin/menu.php
+++ b/admin/menu.php
@@ -2,6 +2,7 @@
declare(strict_types=1);
require_once __DIR__ . '/../inc/auth.php';
+require_once __DIR__ . '/../inc/assets.php';
require_once __DIR__ . '/../inc/menu.php';
require_auth();
@@ -186,7 +187,7 @@ $menuEnabled = is_menu_enabled();
-
+
diff --git a/admin/users.php b/admin/users.php
index bf666b9..377f0af 100644
--- a/admin/users.php
+++ b/admin/users.php
@@ -2,6 +2,7 @@
declare(strict_types=1);
require_once __DIR__ . '/../inc/auth.php';
+require_once __DIR__ . '/../inc/assets.php';
require_once __DIR__ . '/../inc/users.php';
require_auth();
@@ -173,7 +174,7 @@ $users = get_all_users();
-
+
diff --git a/inc/assets.php b/inc/assets.php
new file mode 100644
index 0000000..4c4787d
--- /dev/null
+++ b/inc/assets.php
@@ -0,0 +1,25 @@
+ changes the URL every time the file's contents change, so
+ * it's always treated as a brand new resource rather than a cached one.
+ *
+ * Usage:
+ *
+ */
+function asset_version(string $relativePath): string
+{
+ $path = dirname(__DIR__) . '/' . ltrim($relativePath, '/');
+ $mtime = @filemtime($path);
+
+ return $mtime !== false ? '?v=' . $mtime : '';
+}
diff --git a/index.php b/index.php
index f6aeb9e..8551a0a 100644
--- a/index.php
+++ b/index.php
@@ -1,5 +1,6 @@
The Old Fitz Public House
-
+
@@ -284,7 +285,7 @@ $siteUrl = rtrim(SITE_URL, '/');
-
+