Skip to Content

Browser cache issue after any change in the UI

Hi experts,

I have made a custom SAP UI5 application in HCP. I am facing the browser cache issue in the application. Whenever I am doing any change in UI the changes are not reflected in the application. I need to do hard or empty cache reload to see the changes.

I am directly loading the component.js(not using index.html) file to load the application so I can't use the cache buster code(which is handling cache buster issue automatically) which we write in index.html to handle cache issue.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Apr 07, 2017 at 09:37 AM

    Hi Vishal

    This can be quite frustrating when developing apps. I always have console (f12 developer tools) open in my browser when I refresh apps. There is a setting under the "network" tab: "Always refresh from server" (IE) or "Disable cache" (Chrome). This forces the browser to load from the server instead of browser cache.

    Hope this helps

    Antonette

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Antonette,

      Thanks for your suggestion.
      I am also using the same approach when developing the application, but I just need the permanent solution for this issue.

  • Apr 07, 2017 at 11:23 AM

    one html file must be using to run your app, that may be inside the test folder in project structure, check your app url to find html file and you can implement cache buster there.

    Add comment
    10|10000 characters needed characters exceeded

  • Apr 07, 2017 at 03:18 PM

    check if this link helps

    Add comment
    10|10000 characters needed characters exceeded

    • As there is no 'index.html' file, it means that your application is running inside another UI5 application/container like FIORI launchpad. In this case resolving cache should be the responsibility of parent container(FIORI launchpad) holding your application