From 9d0f1f2b5cba07a177fa8e69cf40a58932470831 Mon Sep 17 00:00:00 2001 From: Alexander Medvednikov Date: Sat, 16 May 2026 16:34:23 +0300 Subject: [PATCH] layout: cache-bust gitly.css and gitly.js with app start timestamp @css / @js are baked at compile time and produced URLs without a versioning query, so browsers happily served stale assets after a gitly upgrade. Emit the link/script tags directly with a ?v=@{app.started_at} suffix so each new gitly process forces a refetch without disabling caching across the process lifetime. --- templates/layout/head.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/layout/head.html b/templates/layout/head.html index 5a90ef5..3b4a08e 100644 --- a/templates/layout/head.html +++ b/templates/layout/head.html @@ -5,8 +5,8 @@ @css '//fonts.googleapis.com/css?family=Roboto:400,300,100,200,500,700' -@css '/css/gitly.css' + -@js '/js/gitly.js' + -- 2.39.5