on 01-06-2015 9:11 AM
Hi,
I want to use Application Cache Buster to load files from cache and when there is any modification in code, load from server.
I have followed the developer guide and created sap-ui-cachebuster-info.json and added data-sap-ui-appCacheBuster="./" in bootstrap
https://sapui5.netweaver.ondemand.com/sdk/#docs/guide/ff7aceda0bd24039beb9bca8e882825d.html
But now it's enable to load the file and giving following error:
Uncaught Error: failed to load 'dia/cmc/contractlandscape/Component.js' from ./contractlandscape/Component.js: 404 - Not Found
It works fine, if I don't use application cache buster.
Following is my code in index.html
<script
id="sap-ui-bootstrap"
src="resources/sap-ui-core.js"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-libs="sap.m"
data-sap-ui-xx-bindingSyntax="complex"
data-sap-ui-appCacheBuster="./"
data-sap-ui-resourceroots='{
"dia.cmc": "./"
}' >
</script>
<script>
var oShell = new sap.m.Shell({
id:"idMainShell",
app : new sap.ui.core.ComponentContainer({
name : "dia.cmc.contractlandscape"
})
});
oShell.setAppWidthLimited(false);
oShell.placeAt("content");
Following is the content of sap-ui-cachebuster-info.json
{
"contractlandscape/Component.js": "20150106154005",
}
Following is the declaration of Component.js file
jQuery.sap.declare("dia.cmc.contractlandscape.Component");
And following is folder structure
Please help in identifying the problem. Thanks..
Regards,
Vikram
Hi,
The XSEngine does not support the application cache buster concept.
Check the below link:
Application Cache Buster - UI Development Toolkit for HTML5 (SAPUI5) - SAP Library
Regards,
Ritesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hello,
I think you need to include the text like below in the index.html file
src="resources/sap-ui-cachebuster/sap-ui-core.js"
Have a look into the below link
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Nagarjun,
My application is deployed on xsengine, when I include sap-ui-core.js as below,
<script src="/sap/ui5/1/resources/sap-ui-cachebuster/sap-ui-core.js"
id="sap-ui-bootstrap"
data-sap-ui-libs="sap.ui.commons, sap.ui.ux3,sap.ui.table, sap.m"
data-sap-ui-xx-bindingSyntax="complex"
data-sap-ui-resourceroots='{ "xxx": "./" }'
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-appCacheBuster="./"
data-sap-ui-language="en">
</script>
I got 404 error
I have the same problem, have you got any solutions?
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.