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

LESS cache is not re-used if the request comes from a different host

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.4.1, 6.2.6, 7.0
    • Fix Version/s: 8.1, 8.2-milestone-1, 7.4.4
    • Component/s: LESS
    • Labels:
      None
    • Difficulty:
      Unknown
    • Documentation:
      N/A
    • Documentation in Release Notes:
      N/A
    • Similar issues:

      Description

      Use-case:

      The cache is not re-used because the host (localhost or my-public-url) is part of the cache key.

      This has been done for the purpose of XWIKI-11731. We needed to put the URL in the cache key. But actually, only the "path" part of the URL is needed. We don't need to store http//localhost:8080/xwiki/myResource, but only /xwiki/myResource.

      This is the fix I'm going to commit.

        Attachments

          Activity

            People

            • Assignee:
              gdelhumeau Guillaume Delhumeau
              Reporter:
              gdelhumeau Guillaume Delhumeau
            • Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Date of First Response: