Details
-
Bug
-
Resolution: Unresolved
-
Major
-
None
-
13.10
-
None
-
Unknown
-
Description
The "Caching Policy" property of a SSX has different behaviors depending on whether the type is "CSS" or "LESS"
- For CSS styles, it sets the "Cache-Control" and "Expires" HTTP headers so that cache is handled by the browser.
- For LESS styles, styles are cached in the backend, unless the "Caching Policy" value is set to "FORBID".
So in the end, cache expectations are different based on the type of the style. For example, any user data used inside a LESS SSX will be cached for every other users, while it's not the case for CSS SSX. This behavior is quite confusing.
Ideally, we would need to follow the same logic as UIX (explicitly indicate what we need from the context and generate a different URL for the browser cache and a different cache key for the server cache)
Attachments
Issue Links
- relates to
-
XWIKI-19832 Take into account the request parameters when caching a LESS SSX
- Closed