commit fc41ad9749d36a5486d3b16420c8bcaa85105383
parent 9a0a980b9bdb9eb0eddbbb2c9fffaba502004a1d
Author: torter <koubbamohamedrayan@gmail.com>
Date: Wed, 21 Oct 2026 13:21:43 +0000
board: always load fresh posts
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/docs/board.html b/docs/board.html
@@ -106,7 +106,7 @@ function pick(bar, attr, set) {
}
pick(document.getElementById('sort'), 's', function (v) { sort = v; });
pick(cats, 'c', function (v) { cat = v; });
-fetch('board.json').then(function (r) { return r.json(); }).then(function (d) { all = d; show(); })
+fetch('board.json?' + Date.now()).then(function (r) { return r.json(); }).then(function (d) { all = d; show(); })
.catch(function () { document.getElementById('empty').textContent = "Couldn't load the board. Try reloading."; });
</script>
diff --git a/docs/post.html b/docs/post.html
@@ -65,7 +65,7 @@ function giscus(el, cat, mapping, term) {
}
var n = new URLSearchParams(location.search).get('n');
-fetch('board.json').then(function (r) { return r.json(); }).then(function (d) {
+fetch('board.json?' + Date.now()).then(function (r) { return r.json(); }).then(function (d) {
var p = d.filter(function (x) { return String(x.n) === n; })[0];
if (!p) {
// brand new, the board catches up within a few minutes