Skip to Content
1
Nov 28, 2017 at 03:19 PM

SAP MII UI5 Application Cache Buster not working

1194 Views Last edit Nov 28, 2017 at 03:46 PM 2 rev

I have not found a clear answer for this issue. UI5 application files are caching and are not updating when the files change on the server. The MII server installed on NetWeaver 7.5 AS Java is not creating the sap-ui-cachebuster-info.json file. Am I missing a step or is my project not structured correctly?

System information:

  • NetWeaver 7.5 AS Java
  • MII 15.1 sp 03 patch 16
  • SAPUI5 on server v1.38.11

On MII server web.xml file:

  • f:\usr\sap\M5D\J00\j2ee\cluster\apps\sap.com\xapps~xmii~ear\servlet_jsp\XMII\root\WEB-INF\web.xml
  • Added
<!-- ============================================================== -->
<!-- AppCacheBuster Filter                                          -->
<!-- ============================================================== -->
<filter>
	<display-name>AppCacheBusterFilter</display-name>
	<filter-name>AppCacheBusterFilter</filter-name>
	<filter-class>com.sap.ui5.resource.AppCacheBusterFilter
</filter-class>
</filter>
<filter-mapping>
	<filter-name>AppCacheBusterFilter</filter-name>
	<url-pattern>/*</url-pattern>
</filter-mapping>

In the application Index.irpt:

  • http://<server name>:50000/XMII/CM/coeMES/Index.irpt
  • Component.js and manifest.json are in the same folder as Index.irpt
<script src="/sapui5/resources/sap-ui-cachebuster/sap-ui-core.js"
	id="sap-ui-bootstrap"
	data-sap-ui-compatVersion="edge"
	data-sap-ui-libs="sap.m,sap.ui.commons,sap.ui.table,sap.ui.layout"
	data-sap-ui-theme="sap_bluecrystal"
	data-sap-ui-appCachebuster="./">
</script>

The server has been rebooted a few times when trying to troubleshoot this issue. I have found related support articles, but nothing seems to work (most seem to cover UI5 running on NetWeaver AS ABAP).

Enable Filter for JAVA Applications

App Cache Buster - for ABAP Server

MII Related Cache Buster Question - Enable Caching of JS Files

MII Related Cache Buster Question - Not Rebuilding File

Attachments

webxml.txt (26.1 kB)