diff options
author | Marcel Müller <marcel-mueller@gmx.de> | 2024-07-10 22:23:39 +0200 |
---|---|---|
committer | Marcel Müller <marcel-mueller@gmx.de> | 2024-07-10 23:13:48 +0200 |
commit | 4f1258431088804bab45b8d88f6498d0176e5d8f (patch) | |
tree | 140f62eebc9835def2f32f1467944b70dc205031 /apps | |
parent | b97c7dfe7f162680ffd9720ece12cdcd3ab656cd (diff) | |
download | nextcloud-server-4f1258431088804bab45b8d88f6498d0176e5d8f.tar.gz nextcloud-server-4f1258431088804bab45b8d88f6498d0176e5d8f.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 1b31f91eeff..e564a29eb04 100644 --- a/apps/theming/lib/ThemingDefaults.php +++ b/apps/theming/lib/ThemingDefaults.php @@ -437,7 +437,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(); } |