Application Cache Buster in HCP
As described in this help link - Application Cache Buster - UI Development Toolkit for HTML5 (SAPUI5) - SAP Library - App Cache Buster is also supported on HCP.
We have the following code which works well when deployed on Prem.
When we deploy the same code on HCP, get the following error:
- Request URL:https://webapp-<hcpaccount>.dispatcher.hana.ondemand.com/sap-ui-cachebuster-info.json?sap-ui-language=en-US
- Request Method:GET
- Status Code:404 Not Found
URL formation for on-prem:
URL formation for HCP:
Has anybody tried this out before and do we know of any solution ?
Had raise this issue via SMP and got the following reply:
the AppCacheBuster is not supported for HCP HTML5 applications out-of-the-box. The documentation is unfortunately misleading since it doesn't reflect the new HTML5 apps there and is based on the state for the Java applications:
For UI5 applications running on Java as well as for UI5 applications running on ABAP this file is generated automatically.
You should either remove the option data-sap-ui-appCacheBuster="./" on the bootstrap script which disables the application cachebuster or you create this file manually - but for
that scenario you have to take care that you handle the timestamps for the resources properly.
Regarding the HTML5 apps roadmap - till now it is not planned to support it.