aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJulius Knorr <jus@bitgrid.net>2025-01-24 12:30:43 +0100
committerJulius Knorr <jus@bitgrid.net>2025-01-24 12:31:11 +0100
commit50c8bcf419be1025a2ef08e6f56a4441ec3712ab (patch)
treef9eb1a70b410e548685289d878196a155b9655b3
parent28899e11d13d7fe19299f06620213e255943def4 (diff)
downloadnextcloud-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.php2
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;
}