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.
Subscribe
Login
Please login to comment
0 Comments