cancel
Showing results for 
Search instead for 
Did you mean: 
Subscribe

Hi ,

        I have developed a SAP UI5 application and moved it to the production server. subsequent to that i have made some changes  to the code in development server and moved it to production server. But when we access SAP UI5 application from the browsers the new code is not getting updated in the application. To make this work every time i need to clear the browser cache manually. Even after running the report " " we need to clear cache in the browser manually.

In the application index we are using this code

<meta http-equiv="X-UA-Compatible" content="IE=edge">

<META HTTP-EQUIV="Pragma" CONTENT="no-cache">

<meta http-equiv="cache-control" content="no-cache" />

<META HTTP-EQUIV="Expires" CONTENT="-1">

<script

   src="resources/sap-ui-core-all.js"

   id="sap-ui-bootstrap"

   data-sap-ui-libs="sap.m, sap.ui.commons,  sap.suite.ui.commons, sap.ui.table, sap.ui.ux3,sap.viz"

   data-sap-ui-theme="sap_bluecrystal"

    data-sap-ui-appCacheBuster="./"  >

</script>

Please suggest how make the new code getting reflected in the browser without clearing the browser cache manually.

Thanks & Regards,

Jayasree.

0 Likes
View Entire Topic
Former Member
0 Likes

Hello ,

In web.xml do following changes:

inside :

<!-- ============================================================== -->

  <!-- UI5 resource servlet used to handle application resources      -->

  <!-- ============================================================== -->

<context-param>

Add:

  <param-name>com.sap.ui5.resource.DEV_MODE</param-name>

  <param-value>true</param-value>

  </context-param>

-Kind Regards

Ajay Nayak

jmoors
Active Contributor
0 Likes

Again, this is ok for development, however the question related to production where you shouldn't enable the dev mode.

Regards,

Jason

Former Member
0 Likes

Right then also include the code :

<!-- ============================================================== -->

<!-- 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>

-Ajay

jmoors
Active Contributor
0 Likes

That's what I recommended above, obviously will be different if you are not using a Java stack.

Regards,

Jason