cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 Cache Buster

Former Member
0 Kudos

Hi All,

I am trying to setup cache busting on a sapui5 application, however I keep receiving this error in the console:

Failed to load AppCacheBuster index file from: "http://website.com/sap-ui-cachebuster-info.json?sap-ui-language=en-US".

it seems the info.json index file is not generating.

So far I have the bootstrap like so:

<script id="sap-ui-bootstrap" type="text/javascript" data-sap-ui-libs="sap.ui.commons,sap.ui.table,sap.ui.ux3,sap.m,sap.viz" data-sap-ui-theme="sap_bluecrystal" src="https://sapui5.hana.ondemand.com/resources/sap-ui-cachebuster/sap-ui-core.js" data-sap-ui-appcachebuster="./"> </script>

Searching online suggests I should run /UI5/APP_INDEX_CALCULATE, however this report does not seem to exist in my system (SAP NetWeaver 7.40)

Any pointers would be greatly appreciated.

Thanks.

Accepted Solutions (0)

Answers (3)

Answers (3)

sagarikagattu
Participant

Hello ,

Can you please post the index.html file coding here, as well the program has been replaced with /UI5/UPDATE_CACHEBUSTER, please run it to generate the new tokens of cache buster

Former Member
0 Kudos

Hi,

I have run the /UI5/UPDATE_CACHEBUSTER program, but it does not seem to do anything, and it's documentation doesn't make anything more clear.

Cache busting is still not doing anything afterwards.

Thanks

sagarikagattu
Participant
0 Kudos

Hello Cody,

Cab you please let me know if you are using HANA cloud platform, if yes cache buster is not supported, please check the below link and let us know if you need any further details.

https://help.sap.com/saphelp_uiaddon20/helpdata/en/ff/7aceda0bd24039beb9bca8e882825d/content.htm?loa...

if you are using AS for ABAP, please change the src as below.

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

mvaibhav
Contributor

Hi Cody,

Have you modified the script tag in your index.html file as mentioned below ?

<script id="sap-ui-bootstrap"

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

data-sap-ui-libs="sap.m"

data-sap-ui-theme="sap_bluecrystal"

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

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

data-sap-ui-resourceroots='{"notification": "./"}'>

The attributes highlighted in bold should be added for cache busting on a sapui5 application.


Former Member
0 Kudos

Hi,

Thanks for the response.

This is my bootstrap:

<script id=

"sap-ui-bootstrap"

type="text/javascript"

data-sap-ui-libs="sap.ui.commons,sap.ui.table,sap.ui.ux3,sap.m,sap.viz"

data-sap-ui-theme="sap_bluecrystal"

src="https://sapui5.hana.ondemand.com/resources/sap-ui-cachebuster/sap-ui-core.js"

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

former_member197071
Participant
0 Kudos

I am also sailing in the same boat, when I run /UI5/UPDATE_CACHEBUSTER, it says: