diff options
author | Julius Knorr <jus@bitgrid.net> | 2025-01-24 12:30:43 +0100 |
---|---|---|
committer | Julius Knorr <jus@bitgrid.net> | 2025-01-24 12:31:11 +0100 |
commit | 50c8bcf419be1025a2ef08e6f56a4441ec3712ab (patch) | |
tree | f9eb1a70b410e548685289d878196a155b9655b3 | |
parent | 28899e11d13d7fe19299f06620213e255943def4 (diff) | |
download | nextcloud-server-fix/core-cachebuster.tar.gz nextcloud-server-fix/core-cachebuster.zip |
fix: Apply server version based cache buster to core assetsfix/core-cachebuster
Signed-off-by: Julius Knorr <jus@bitgrid.net>
-rw-r--r-- | lib/private/TemplateLayout.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/TemplateLayout.php b/lib/private/TemplateLayout.php index e4978916ec3..0542c25d46c 100644 --- a/lib/private/TemplateLayout.php +++ b/lib/private/TemplateLayout.php @@ -351,7 +351,7 @@ class TemplateLayout extends \OC_Template { $appVersion = $this->appManager->getAppVersion($appId); // For shipped apps the app version is not a single source of truth, we rather also need to consider the Nextcloud version - if ($this->appManager->isShipped($appId)) { + if ($this->appManager->isShipped($appId) || $appVersion === '0') { $appVersion .= '-' . self::$versionHash; } |