Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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.

<script

id="sap-ui-bootstrap"

src="resources/sap-ui-core.js"

data-sap-ui-xx-bindingSyntax="complex"

data-sap-ui-libs="sap.m,sap.ui.comp,sap.ui.core"

data-sap-ui-theme="sap_bluecrystal"

data-sap-ui-resourceroots='{

    "com.x.y": "./",

    "webapp": "./webapp"}'

data-sap-ui-appCacheBuster="./">

</script>

When we deploy the same code on HCP, get the following error:

  1. Request URL:https://webapp-<hcpaccount>.dispatcher.hana.ondemand.com/sap-ui-cachebuster-info.json?sap-ui-language=en-US
  2. Request Method:GET
  3. Status Code:

Observation:

URL formation for on-prem:

https://fqdn:port/sap/bc/ui5_ui5/sap/webapp/sap-ui-cachebuster-info.json?sap-ui-language=en_US

URL formation for HCP:

https://webapp-<hcpaccount>.dispatcher.hana.ondemand.com/sap-ui-cachebuster-info.json?sap-ui-language=en-US

Query:

Has anybody tried this out before and do we know of any solution ?

Regards,

Parag.

Tags:
Former Member
Former Member replied

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.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question