Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Resource loading issue while using AppCacheBuster

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

Former Member
Not what you were looking for? View more on this topic or Ask a question