Skip to Content
avatar image
Former Member

How to Empty Cache and Hard Reload in Chrome by JavaScript??

I All,

I am getting issue while loading the latest changes in SAP UI5 Application.

For reflecting the latest change i have to do manually Empty Cache and Hard Reload but end user don't want to do these step.

So I need to do these steps by some Browser coding or some javascript coding in my Controller part.

location.reload(true) is not working.


Regard,

Rewati Raman

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Jul 18, 2017 at 05:04 AM

    Just want to get your attention about SAP UI5 Cache Buster concept

    https://sapui5.netweaver.ondemand.com/1.36.7/docs/guide/4cfe7eff3001447a9d4b0abeaba95166.html

    Add comment
    10|10000 characters needed characters exceeded

  • Jul 18, 2017 at 07:27 AM

    Schedule to run the report - "/UI5/APP_INDEX_CALCULATE" in the backend SAP System.

    This is an issue which is faced due to caching but the options are to refresh the cache from the backend. It should initiatite a request for new files and load the new files automatically.

    Else, you can use the property in index.html to disable caching. However, that is not recommended and it is better to handle it by re-indexing the files from the backend.

    Refer link: https://help.sap.com/saphelp_uiaddon10/helpdata/en/c5/e7098474274d3eb7379047ab792f1f/frameset.htm

    Regards,

    Sharath

    Add comment
    10|10000 characters needed characters exceeded

    • One suggestion: Hope you can consolidate your issues with the available answers and close the multiple threads on the same issue. If you have anything specific yet related to cache, you could open a new post and follow it up.

      Regards,

      Sharath