Skip to Content
0
Jun 22, 2020 at 04:36 AM

sap-ui-core.js is loaded twice while using SAPUI5 Cachebuster

251 Views

Hello Experts,

I am using cachebuster for bootstrapping SAP UI5, using sap-ui-cachebuster url

<script id="sap-ui-bootstrap"
	src="https://sapui5.hana.ondemand.com/1.74.0/resources/sap-ui-cachebuster/sap-ui-core.js"
	data-sap-ui-theme="sap_fiori_3" data-sap-ui-libs="sap.m,sap.ui.core"
	data-sap-ui-compatVersion="edge" data-sap-ui-preload="async"
	data-sap-ui-appCachebuster="./"
	data-sap-ui-resourceroots='{"IntegrationSuite": "/manageTenant/static/cpis-landing/"}'>

But what I observed is that "sap-ui-core.js" is loaded twice, below is the description of network calls,

1. https://sapui5.hana.ondemand.com/1.74.0/resources/sap-ui-cachebuster/sap-ui-core.js

2. https://sapui5.hana.ondemand.com/1.74.0/resources/~30eee3cc58cbefc7c50ce7a6d44d5e8ad724bc35~/sap-ui-core.js

Is this how it works or any optimization possible.