Uploaded image for project: 'Kopano WebApp'
  1. Kopano WebApp
  2. KW-3540

Improve cache busting for javascript files

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Medium
    • Resolution: Done
    • Affects Version/s: None
    • Fix Version/s: 4.5.0
    • Security Level: Public
    • Labels:

      Description

      Currently cache busting is done by appending the packaging version to but this might contain invalid characters (not supported in an URL). Change this to be a hash of the version.

      In addition, configure tinymce to add cache busting to files it loads by itself and which webapp doesn't load via loader.php

      This allows us to cache javascript files loaded from /client/ with the Cache-Control header. So the webbrowser caches it for us and we can skip loading ~ 21 requests on load.

      This also requires a packaging change to add the cachebuster file on build

      dpkg-parsechangelog -S Version  | sha1sum | cut -b 1-8> $(INSTDIR)$(WABASE)/cachebuster
      

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              jvanderwaa Jelle van der Waa
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: