aboutsummaryrefslogtreecommitdiffhomepage
path: root/tpl/default/page.footer.html
diff options
context:
space:
mode:
authorArthurHoaro <arthur@hoa.ro>2017-10-01 11:02:48 +0200
committerArthurHoaro <arthur@hoa.ro>2017-10-01 11:10:37 +0200
commitbfe4f536bbfe03f38e0c801bfbd26587a2b64a7f (patch)
tree5d5341cb7c72e32b655eca243cc1c33824199b33 /tpl/default/page.footer.html
parenta59bbf50d7530d7e82a91896a210b9da49cb1568 (diff)
downloadShaarli-bfe4f536bbfe03f38e0c801bfbd26587a2b64a7f.tar.gz
Shaarli-bfe4f536bbfe03f38e0c801bfbd26587a2b64a7f.tar.zst
Shaarli-bfe4f536bbfe03f38e0c801bfbd26587a2b64a7f.zip
Add a version hash for asset loading to prevent browser's cache issue
The hash is generated using the same salt as the one used for credentials (1 salt per instance) in order to avoid exposing the instance version. Fixes #965
Diffstat (limited to 'tpl/default/page.footer.html')
-rw-r--r--tpl/default/page.footer.html6
1 files changed, 3 insertions, 3 deletions
diff --git a/tpl/default/page.footer.html b/tpl/default/page.footer.html
index 94f771a2..54b16e8a 100644
--- a/tpl/default/page.footer.html
+++ b/tpl/default/page.footer.html
@@ -27,6 +27,6 @@
27 <script src="{$value}#"></script> 27 <script src="{$value}#"></script>
28{/loop} 28{/loop}
29 29
30<script src="js/shaarli.js"></script> 30<script src="js/shaarli.js?v={$version_hash}"></script>
31<script src="inc/awesomplete.js#"></script> 31<script src="inc/awesomplete.js?v={$version_hash}#"></script>
32<script src="inc/awesomplete-multiple-tags.js#"></script> 32<script src="inc/awesomplete-multiple-tags.js?v={$version_hash}#"></script>