Details
-
Bug
-
Resolution: Fixed
-
Major
-
12.10.6
-
None
-
Unknown
-
N/A
-
N/A
-
Description
Step to reproduce.
- Go to the main page, look at the source. The part we are interested in is:
<link href=" /xwiki/bin/skin/skins/flamingo/style.min.css?cache-version=1617814542000&skin=XWiki.DefaultSkin&colorTheme=xwiki%3AFlamingoThemes.Iceberg " rel="stylesheet" type="text/css" media="all" />
- Go the the "Iceberg" theme, make random change, and save the page
- Go back to the main page, look at the source. The part we are interested in is:
<link href=" /xwiki/bin/skin/skins/flamingo/style.min.css?cache-version=1617814542000&skin=XWiki.DefaultSkin&colorTheme=xwiki%3AFlamingoThemes.Iceberg " rel="stylesheet" type="text/css" media="all" />
As you can see, the "cache-version" parameter (that is used to force the browser not to use a cached version of the file when a change is made) has not changed, because it only considers the "style.min.css" file, not the flamingo theme.
As a consequence, the user cannot see the change unless she clears her browser's cache.
To avoid this, we need to add the version of the theme into the query string, so when the theme is changed, the url is different.
Attachments
Issue Links
- is duplicated by
-
XWIKI-16515 Colors of the color theme are cached on the browser even when the color theme document is updated
- Closed
- relates to
-
XWIKI-18668 The changes on the color theme are not taken into account for various ss*x resources
- Open