cancel
Showing results for 
Search instead for 
Did you mean: 

SAPUI5 Application Cache Buster - for SAP MII ?

Momen_Allouh
Advisor
Advisor
0 Kudos

I read that to enable application Cache Buster for JAVA I must use this filter:

Enable the Filter for Java Applications - What's New in SAPUI5 - SAP Library

But in SAP MII where can I find the web.xml file to declare that filter and be able to use app cache buster ?

please help as soon as possible.

Accepted Solutions (1)

Accepted Solutions (1)

former_member182372
Active Contributor
0 Kudos

web.xml is in WEB-INF folder of your web application

Momen_Allouh
Advisor
Advisor
0 Kudos

I acctevated the AppCacheBuster but the sap-ui-cachebuster-info.json is not updating once I modify a file.

I modify a file then I refresh the browser, but the file is not being updated because the time-stamp in sap-ui-cachebuster-info.json  is not updating ?

Any idea or solution?

former_member182372
Active Contributor
0 Kudos

from what i see in code

buildResourceIndex is executed in init of AppCacheBusterFilter

so it means you have to restart your servlet (or server 😉 ) in order to recalculate sap-ui-cachebuster-info.json

Momen_Allouh
Advisor
Advisor
0 Kudos

Right, I found solution without restarting the server:

after modifying a file I added space to web.xml then save it and refreshed the browser.

former_member182372
Active Contributor
0 Kudos

your WAS restarts servlet, file change listener checks modification time of web.xml and restarts it under the scene, so better take control in yout hands LOL

Answers (0)