From 0a9683edbcc2aab37777f1d5f42b0252f893d200 Mon Sep 17 00:00:00 2001 From: Yuri Sizov Date: Mon, 21 Nov 2022 13:45:32 +0300 Subject: [PATCH] Add cache-busting to custom web assets --- conf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/conf.py b/conf.py index 45d0e797d..9f1c9223b 100644 --- a/conf.py +++ b/conf.py @@ -189,14 +189,14 @@ html_extra_path = ["robots.txt"] html_css_files = [ 'css/algolia.css', 'https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.css', - "css/custom.css", + "css/custom.css?1", ] if not on_rtd: html_css_files.append("css/dev.css") html_js_files = [ - "js/custom.js", + "js/custom.js?1", ('https://cdn.jsdelivr.net/npm/docsearch.js@2/dist/cdn/docsearch.min.js', {'defer': 'defer'}), ('js/algolia.js', {'defer': 'defer'}) ]