From 5a9b4a56baa82dfd798e90df05fd3618adc459b3 Mon Sep 17 00:00:00 2001 From: Hermes Date: Sat, 8 Aug 2026 21:13:14 +0200 Subject: [PATCH] cache-bust catalog.json (?_=Date.now) so Lampa.Reguest serves fresh content --- plugin.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/plugin.js b/plugin.js index c4dc806..045bb82 100644 --- a/plugin.js +++ b/plugin.js @@ -16,6 +16,12 @@ return base() + p.replace(/^\/+/, ''); } + // Append a cache-busting param so Lampa.Reguest does not serve a stale copy. + function bust(url) { + var sep = url.indexOf('?') >= 0 ? '&' : '?'; + return url + sep + '_=' + Date.now(); + } + function esc(s) { return String(s == null ? '' : s) .replace(/&/g, '&').replace(/