$(function () { pageContext.i18n.modTalk = 'moderation talk'; pageContext.i18n.replyToComment = 'Reply'; pageContext.i18n.modTalkEmpty = 'moderation talk is empty'; pageContext.url.getModTalk = "/comments/%25ID%25/listModTalk.json"; pageContext.url.possibleCommentRecipients = "/comments/%ID%/possibleRecipients.json"; pageContext.url.commentEdit = '/comments/%25ID%25/edit.html'; pageContext.url.commentView = '/comments/%ID%/view.html'; pageContext.i18n.commentVisibility = { 'full': 'Viewable by all users', 'op': 'Viewable by the original poster', 'mod': 'Viewable by moderators', 'opAndMod': 'Viewable by moderators and the original poster', 'other': 'Advanced visibility', 'dialogTitle': 'Comment visibility', 'selectGroups': 'Visible to groups', 'selectOther': 'Other recipients', 'selectOriginalPoster': 'Original poster', 'selectModerators': 'Moderators', 'selectAssignees': 'Asked to answer users' }; pageContext.i18n.commentMenuLabels = { 'comment-edit': 'comments.menu.edit', 'comment-delete': 'comments.menu.delete', 'comment-convert': 'comments.menu.convert' };pageContext.i18n.answer= { bestAnswer: 'Best Answer', controlBar : { accept: 'Accept', unaccept: 'Unaccept', acceptCommand: 'Accept this answer as correct', cancelAcceptedCommand: 'Remove this answers accepted status' } }; window.croles = { u: false, op: false, m: false, og: false, as: false, ag: false, dc: false, doc: false, eo: false, ea: false }; tools.init({ q: { e: false, ew: false, eo: false, r: false, ro: false, d: false, dow: false, fv: false, c: false, co: false, p: false, tm: false , ms: false, mos: false }, n: { f: false, vf: false, vfo: false, vr: false, vro: false, c: false, co: false, vu: false, vd: false, w: false, wo: false, l: false }, c: { e: false, eo: false, d: false, dow: false, ta: false, tao: false, l: false }, a: { e: false, ew: false, eo: false, d: false, dow: false, a: false, aoq: false, ao: false, tc: false, tco: false, p: false, tm: false }, pc: croles }, { tc: true, nsc: true }); commandUtils.initializeLabels(); }); Skip to Content
0

Failed to load AppCacheBuster index file

Mar 24, 2017 at 03:51 PM

516

avatar image

Hello!

I try to activate AppCache Buster for my custom SAPUI5 application without any extensions of standard applications.

I changed src="/sap/public/bc/ui5_ui5/1/resources/sap-ui-core.js" to src="/sap/public/bc/ui5_ui5/1/resources/sap-ui-cachebuster/sap-ui-core.js" and add data-sap-ui-appCacheBuster="./" to config. So full bootstrap config in my index.html file looks as follow:

  <script id="sap-ui-bootstrap" type="text/javascript"
      src="/sap/public/bc/ui5_ui5/1/resources/sap-ui-cachebuster/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='{
          "costplaner": "./"
      }'>
  </script>

When I call index.html, I see the following error in Developer Tools:

2017-03-24 19:58:06 Failed to load AppCacheBuster index file from: "<url to component>/sap-ui-cachebuster-info.json?sap-ui-language=en-US". If I click on URL, I see the page with text: "File <path to component>/sap-ui-cachebuster-info.json NOT found!"

AppCache Buster doesn't work as expected. I mean that if I changed something in i.e. view I should to clear browser cache manually to see these changes. I tried to run /UI5/APP_INDEX_CALCULATE, /UI5/RESET_CACHEBUSTER with no effect.

Application run on SAP NetWeaver ABAP Server with UI Add-on. This is stand-alone application called directly by URL. There is no Fiori Launchpad.

Version of component is SAP_UI 740 0016 SAPK-74016INSAPUI User Interface Technology 7.40

Version of SAPUI5 is 1.28.31

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

1 Answer

Deepak Anumula Mar 24, 2017 at 06:18 PM
0

Hi Lev,

I hope the way you call the cache buster is not correct, I am not sure.

As i Know we can directly load the cache buster file from resourses.

Please refer the below link :

App Cache Buster

Thanks,

Deepak Raj.

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

Hi!

I can't find what I've missed in configuration. According to manual I added "sap-ui-cachebuster/" to link to the sap-ui-core and added "data-sap-ui-appCacheBuster="./"" parameter. What else should I configure?

Regards,

Lev

0

try by removing the src in the below:

<script id="sap-ui-bootstrap" type="text/javascript"
      src="/sap/public/bc/ui5_ui5/1/resources/sap-ui-cachebuster/sap-ui-core.js"


Please take look below src:
<script src="resources/sap-ui-core.js"
				id="sap-ui-bootstrap"
				data-sap-ui-libs="sap.m"
				data-sap-ui-theme="sap_bluecrystal">
		</script>


0