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(/