From ffb3c9987c2f820b99e8ad0ad56db8ae0324671c Mon Sep 17 00:00:00 2001 From: erdgeist Date: Tue, 14 Jul 2026 16:52:03 +0200 Subject: Extend static-asset cache-busting to the public layout mtime_busted_path only ever covered the four admin-only static files. The public layout has the identical exposure -- ccc.css, glightbox's vendored CSS/JS, and public.js are all served straight from public/ with no pipeline fingerprinting either -- just never got the same treatment. --- app/helpers/admin_helper.rb | 6 ------ 1 file changed, 6 deletions(-) (limited to 'app/helpers/admin_helper.rb') diff --git a/app/helpers/admin_helper.rb b/app/helpers/admin_helper.rb index 6c3cbc64..2684fffb 100644 --- a/app/helpers/admin_helper.rb +++ b/app/helpers/admin_helper.rb @@ -7,10 +7,4 @@ module AdminHelper link_to raw('Deutsch'), url_for(params.permit(:locale, :page_path).to_h.merge('locale' => 'de')) end end - - def mtime_busted_path(path) - file = Rails.public_path.join(path.sub(%r{\A/}, "")) - raise "Static asset not found for cache-busting: #{path} (looked for #{file})" unless File.exist?(file) - "#{path}?v=#{File.mtime(file).to_i}" - end end -- cgit v1.3