From c551ca1e6f41bdcceae5edfb15c0d2133c19c071 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Thu, 23 Apr 2020 15:59:21 -0600 Subject: [PATCH] hotfix: fingerprinted js files to refresh cache on deploy --- layouts/partials/footer/javascript.html | 2 +- layouts/partials/header/javascript.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layouts/partials/footer/javascript.html b/layouts/partials/footer/javascript.html index 558fc8e7b..44e53db65 100644 --- a/layouts/partials/footer/javascript.html +++ b/layouts/partials/footer/javascript.html @@ -3,6 +3,6 @@ {{ $searchInteractions := resources.Get "js/search-interactions.js" }} {{ $telegrafFilters := resources.Get "js/telegraf-filters.js" }} {{ $influxdbURLs := resources.Get "js/influxdb-url.js" }} -{{ $footerjs := slice $versionSelector $contentInteractions $searchInteractions $telegrafFilters $influxdbURLs | resources.Concat "js/footer.bundle.js" }} +{{ $footerjs := slice $versionSelector $contentInteractions $searchInteractions $telegrafFilters $influxdbURLs | resources.Concat "js/footer.bundle.js" | resources.Fingerprint}} diff --git a/layouts/partials/header/javascript.html b/layouts/partials/header/javascript.html index d7fc6aef1..4cbb51ecb 100644 --- a/layouts/partials/header/javascript.html +++ b/layouts/partials/header/javascript.html @@ -2,7 +2,7 @@ {{ $cookies := resources.Get "js/js.cookie.js" }} {{ $themes := resources.Get "js/docs-themes.js" }} {{ $sidebar := resources.Get "js/sidebar-toggle.js" }} -{{ $headerjs := slice $jquery $cookies $themes $sidebar | resources.Concat "js/header.bundle.js" }} +{{ $headerjs := slice $jquery $cookies $themes $sidebar | resources.Concat "js/header.bundle.js" | resources.Fingerprint }}