From abe6442b5bd52088a5ad602975b0df95d6f4297e Mon Sep 17 00:00:00 2001 From: Marcel Müller Date: Wed, 10 Jul 2024 22:23:39 +0200 Subject: fix(theming): Don't reset the cachebuster value when we reset theming MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Marcel Müller --- apps/theming/lib/ThemingDefaults.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'apps') diff --git a/apps/theming/lib/ThemingDefaults.php b/apps/theming/lib/ThemingDefaults.php index 210029ae636..29a4da1959d 100644 --- a/apps/theming/lib/ThemingDefaults.php +++ b/apps/theming/lib/ThemingDefaults.php @@ -460,7 +460,11 @@ class ThemingDefaults extends \OC_Defaults { * Revert all settings to the default value */ public function undoAll(): void { + // Remember the current cachebuster value, as we do not want to reset this value + // Otherwise this can lead to caching issues as the value might be known to a browser already + $cacheBusterKey = $this->config->getAppValue('theming', 'cachebuster', '0'); $this->config->deleteAppValues('theming'); + $this->config->setAppValue('theming', 'cachebuster', $cacheBusterKey); $this->increaseCacheBuster(); } -- cgit v1.2.3