From 4823258f75522c5876f1b8632d893a2e51fc6230 Mon Sep 17 00:00:00 2001 From: Thomas Zilio Date: Thu, 5 Dec 2019 19:50:35 +0100 Subject: [PATCH] Aggiunta versione agli assets Per impedire problemi di cache all'aggiornamento. --- src/App.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/App.php b/src/App.php index 0d2d87f38..cac9089b4 100644 --- a/src/App.php +++ b/src/App.php @@ -165,6 +165,8 @@ class App // Assets aggiuntivi $config = self::getConfig(); + $version = Update::getVersion(); + // Impostazione dei percorsi $paths = self::getPaths(); $lang = trans()->getCurrentLocale(); @@ -203,7 +205,7 @@ class App } } - $result[$key] = $element; + $result[$key] = $element.'?v='.$version; } $assets[$section] = $result;