Skip to Content
0

SAPUI5 Cache Buster

Feb 08 at 07:20 PM

259

avatar image
Former Member

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:

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.

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

2 Answers

Sagarika Gattu Feb 09 at 05:34 AM
1

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

Show 2 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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

0

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?loaded_from_frameset=true

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

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

0
Vaibhav Maheshwari Feb 09 at 04:32 AM
1

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.


Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

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>

0