on 09-18-2014 7:12 AM
Hi,
I am trying to implement Application Cache Buster. I am following Fiori Wave2 application structure.
As Demokit says "To activate the Application Cache Buster the configuration data-sap-ui-appCacheBuster="./" must be added to the bootstrap script of the application page"
But I don't get where to add the said configuration. I have Component.js(extends ComponentBase), Configuration.js, Main.view.xml and Main.controller.js. I am using "fioriSandboxConfig.json" to run the application.
Any idea where to add the AppCacheBuster configuration?
Kind regards,
Rauf
Hi Rauf,
I've faced the same issue recently. Have you already found a working solution?
Best regards,
Tomasz Sobkowiak
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Rauf,
you may try to implement ApplicationCacheBuster directly in the Component.js file as follow:
onAfterRendering : function() {
sap.ui.core.AppCacheBuster.init();
sap.ui.core.AppCacheBuster.register("/sap/bc/ui5_ui5/sap/<APP_NAME>");
}
However, I've noticed that SAP recommends to activate cachebuster in Launchpad instead of activating it each time per different app:
SAP Fiori - Cache Management: Clearing caches a... | SCN
SAP Fiori Launchpad - SAP Library
Hope it will help!
Best regards,
Tomasz
I think you have to add it to your index.html:
<script src="https://sapui5.hana.ondemand.com/sdk/resources/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-libs="sap.m"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-appCacheBuster="./">
</script>
Kind regards,
Wouter
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Wouter,
Thanks for your reply.
But I am using ComponentBase (see this) hence there is no index.html, instead Component Creates content using a xml view.
Regards,
Rauf
User | Count |
---|---|
93 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.