Skip to Content
0
Sep 12 at 01:30 PM

Is xs-app routing needed for UI5 application cache buster? (CF Application Runtime / HTML5 Repo)

117 Views Last edit Sep 14 at 02:17 PM 5 rev

Once application cache busting is enabled and the sap-ui-cachebuster-info.json is available, UI5 will start looking in the timestamped directory for the resource.

E.g. /webapp/~1623054905000~/controller/App.controller.js

Is it up to us to provide a routing to these original files in both deployment to a standalone app in the Cloud Foundry Application Runtime and the HTML5 Application Repository?

At the moment I am achieving this via specific routing in the Approuter, but it's because I don't find any specific documentation, that I'm not sure this is the intended way.

    {
      "source": "^/webapp(?:/~\\d+~)?/(.*)$",
      "authenticationType": "xsuaa",
      "target": "$1",
      "localDir": "dist"
    }