SAPUI5 can either be loaded locally with a relative path from a Web server or externally from a Content Delivery Network (CDN).
Check the available versions with respective maintenance status at https://ui5.sap.com/versionoverview.html and https://sdk.openui5.org/versionoverview.html.
SAPUI5 |
OpenUI5 |
---|---|
#!html<script id="sap-ui-bootstrap"
type="text/javascript"
src="https://ui5.sap.com/1.32.7/resources/sap-ui-core.js"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-libs="sap.m"></script>
|
#!html<script id="sap-ui-bootstrap"
type="text/javascript"
src="https://sdk.openui5.org/1.32.7/resources/sap-ui-core.js"
data-sap-ui-theme="sap_bluecrystal"
data-sap-ui-libs="sap.m"></script>
|
The first segment of the URL after the host name is used to specify a concrete version.
The latest released version of our libraries can be found at https://sdk.openui5.org/resources/sap-ui-core.js (OpenUI5) and https://ui5.sap.com/resources/sap-ui-core.js (SAPUI5).
The latest released version is constantly being upgraded. Therefore, this might have an impact on the stability of your application. Use this version for testing purposes only.
SAPUI5 |
OpenUI5 |
---|---|
#!html<script id="sap-ui-bootstrap" type="text/javascript" src="https://ui5.sap.com/resources/sap-ui-core.js" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.m"></script> |
#!html<script id="sap-ui-bootstrap" type="text/javascript" src="https://sdk.openui5.org/resources/sap-ui-core.js" data-sap-ui-theme="sap_bluecrystal" data-sap-ui-libs="sap.m"></script> |
The cache control is different for dynamic and static resources. If you refer to the latest stable version (dynamic), you have a maximum age of one week, if you refer to a specific (static) version, you have a maximum age of 10 years. In both cases cross-origin resource sharing (CORS) headers are set, so that you will be able to consume resources from the central location without any proxy in between.