Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
12.5.1
-
None
-
Hard
-
Description
For any extension that has a WebJar or UI module that depends on a platform WebJar, the version of the platform WebJar remains cached after upgrading XWiki, if the extension version doesn't change.
If the extension has a JSX / SSX then they will be cached, having the page version (or the extension version) in the URL.
If the extension has a WebJar resource, it will be cached having the extension version in the URL.
The cache of these extension resources doesn't get invalidated when upgrading XWiki if the extension version doesn't change, because the extension code doesn't change. The consequence is that if one of these resources depends on a platform WebJar resource, then the platform version is not updated when upgrading XWiki. The extension ends up requesting the previous version of the platform WebJar resource.
In order to fix this we need to include the platform version in the URL of JSX / SSX or WebJar resources that are evaluated, because any (Velocity) evaluation can potentially depend on the platform version.
Attachments
Issue Links
- is related to
-
XWIKI-6073 Browsers usually cache JS/CSS resources even if they have changed
- Closed
-
XWIKI-14980 Navigation panel is empty when migrating from an older version of XWiki
- Closed
- relates to
-
CKEDITOR-361 The CKEditor can fail to load after upgrading XWiki
- Closed