diff options
author | Marcel Müller <marcel-mueller@gmx.de> | 2024-07-10 22:23:39 +0200 |
---|---|---|
committer | Andy Scherzinger <info@andy-scherzinger.de> | 2024-07-11 08:31:04 +0200 |
commit | abe6442b5bd52088a5ad602975b0df95d6f4297e (patch) | |
tree | 293e192186e7d81f24a79797dcbfbac203dd2a40 /apps | |
parent | 1aa86f20ea8b3dd0352b41942a24897e1c1af65a (diff) | |
download | nextcloud-server-abe6442b5bd52088a5ad602975b0df95d6f4297e.tar.gz nextcloud-server-abe6442b5bd52088a5ad602975b0df95d6f4297e.zip |
fix(theming): Don't reset the cachebuster value when we reset theming
Signed-off-by: Marcel Müller <marcel-mueller@gmx.de>
Diffstat (limited to 'apps')
-rw-r--r-- | apps/theming/lib/ThemingDefaults.php | 4 |
1 files changed, 4 insertions, 0 deletions
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(); } |