From b10e5696e231273dd8c1c482ca8d047d0eb26123 Mon Sep 17 00:00:00 2001 From: mappu Date: Sun, 23 Apr 2017 17:58:11 +1200 Subject: [PATCH] cache-busting for homepage images --- lib/template.php | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/lib/template.php b/lib/template.php index 0755b36..98c085f 100644 --- a/lib/template.php +++ b/lib/template.php @@ -109,6 +109,10 @@ function buildcommon() { array_map('imagedestroy', $handles); // free } + // Cache-busting stylesheet + + $style = '.homeimage-sprite { background-image: url("logos.jpg?'.md5_file(BASEDIR.'wwwroot/logos.jpg').'"); }'; + // Build index page ob_start(); @@ -120,6 +124,10 @@ function buildcommon() { + + $pr) { ?>