This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-c160b0b6-25fb-417c-8580-7150373a9dc5 XWIKI-22935 Open

tree.less is not cached

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-bce99bb1-7285-4454-ad62-0831dc239cb9 Manuel Leduc created this issue on 26/Feb/25 11:39
 
Summary: tree.less is not cached
Issue Type: cid:jira-generated-image-avatar-c160b0b6-25fb-417c-8580-7150373a9dc5 Bug
Affects Versions: 6.3-rc-1
Assignee: Unassigned
Components: Tree
Created: 26/Feb/25 11:39
Labels: performance
Priority: cid:jira-generated-image-static-major-4f183e97-cd60-44cc-a5e6-5803e5bcd196 Major
Reporter: Manuel Leduc
Description:

Reproduction steps

  1. visit http://localhost:8080/xwiki/bin/view/Sandbox/
  2. open the browser debugger and make sure that "disable cache" is unchecked
  3. click on the "Sandbox Test Page 1" link to go to http://localhost:8080/xwiki/bin/view/Sandbox/
  4. observe the network tab

Expected

http://localhost:8080/xwiki/webjars/wiki%3Axwiki/xwiki-platform-tree-webjar/17.2.0-SNAPSHOT/tree.min.css?evaluate=true is cached

Actual

http://localhost:8080/xwiki/webjars/wiki%3Axwiki/xwiki-platform-tree-webjar/17.2.0-SNAPSHOT/tree.min.css?evaluate=true is not cached

Analysis

The stylesheet needs to be recomputed for each page because:

  1. it relies on less variables for color theme
  2. is relied on webjar script services to computed font-awesome icons
  3. use of $xwiki.getSkinFile to get the spinner