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"
    },
    {
      "source": "^/webapp/(.*)$",
      "authenticationType": "xsuaa",
      "target": "$1",
      "localDir": "dist"
    }

P.S. There is an issue when using an optional regex group in source, hence the split routing definition.

Madiha marwan

M.marwan

Author Since: September 11, 2021

5 1 vote
Article Rating
Subscribe
Notify of
0 Comments
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x