Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-19458

Caching strategy is different between LESS SSX and CSS SSX, making it confusing

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 13.10
    • Fix Version/s: None
    • Component/s: LESS
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      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

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              cdesableau Clément Desableau
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: