From ada670b7d41dae805e25fdd45059aa9ba9cb1730 Mon Sep 17 00:00:00 2001 From: Alex Cabal Date: Fri, 14 Aug 2020 13:36:47 -0500 Subject: [PATCH] Add a version hash query string to CSS files to ensure users get thhe lastest versions regardless of their local cache --- templates/Header.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/templates/Header.php b/templates/Header.php index 3ec2782f..c1b4dc1e 100644 --- a/templates/Header.php +++ b/templates/Header.php @@ -16,6 +16,8 @@ if(!isset($manual)){ $manual = false; } +# We hash with crc32 because it's faster than md5 and "good enough" for this simple cache-busting use case + ?> @@ -23,9 +25,9 @@ if(!isset($manual)){ <? if($title != ''){ ?><?= Formatter::ToPlainText($title) ?> - <? } ?>Standard Ebooks: Free and liberated ebooks, carefully produced for the true book lover. - + - +