Skip to Content

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- . dispatcher.hana.ondemand.com/sap-ui-cachebuster-info.json?sap-ui-language=en-US
  2. Request Method:GET
  3. Status Code:404 Not Found

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- . 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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Dec 03, 2015 at 03:48 AM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Oct 20, 2015 at 08:24 AM

    Hi Parag,

    Warm Greetings. In HCP, this can be done by using Application Descriptor File (neo-app.json). Kindly refer the below links that has more detailed info.

    https://help.hana.ondemand.com/help/aed1ffa3f3e741b3a4573c9e475aa2a4.html

    https://help.hana.ondemand.com/help/frameset.htm?1814d3603acd4ab18102a3b4984687b4.html

    Regards,

    Ajay

    Add comment
    10|10000 characters needed characters exceeded