Fix cache-buster to hash new entry point

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Simon Kühn 2026-05-08 16:16:20 +02:00
parent bbafaabb62
commit 157559e9aa

View file

@ -13,7 +13,7 @@ class AppController extends AbstractController
{ {
$public = $this->getParameter('kernel.project_dir') . '/public/'; $public = $this->getParameter('kernel.project_dir') . '/public/';
return $this->render('app.html.twig', [ return $this->render('app.html.twig', [
'jsv' => substr(md5_file($public . 'app.js'), 0, 8), 'jsv' => substr(md5_file($public . 'js/app.js'), 0, 8),
'cssv' => substr(md5_file($public . 'style.css'), 0, 8), 'cssv' => substr(md5_file($public . 'style.css'), 0, 8),
]); ]);
} }