From 09ab62fe3081ce490aab44f12d6eb26b49da18ca Mon Sep 17 00:00:00 2001 From: Salem Ghoweri Date: Fri, 2 Nov 2018 07:03:33 -0400 Subject: [PATCH 1/2] Add quick cache buster to docs site head --- apps/bolt-site/templates/_site-head.twig | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/bolt-site/templates/_site-head.twig b/apps/bolt-site/templates/_site-head.twig index e818b53d3d..24d10c2398 100644 --- a/apps/bolt-site/templates/_site-head.twig +++ b/apps/bolt-site/templates/_site-head.twig @@ -18,6 +18,7 @@ {% endif %} {% set hasSidebar = nestedPages or sidebar %} +{% set cacheBuster = bolt.data.config.prod ? "?v=" ~ bolt.data.fullManifest.version : "" %} @@ -56,7 +57,7 @@ - + {# @TODO: wire this up to use Critical CSS #}