Skip to Content
avatar image
Former Member

Ho to clear Cache in SAP UI5 Application??

Hello All,

I need to Clear cache in my UI5 Application.

Kindly Give me some solution.

I tried to add following line in .html file but it is not working.

<meta http-equiv='Pragma' content='no-cache' />
<meta http-equiv='content-Control' content='no-cache' />
<meta http-equiv='Cache-Control' content='no-cache, no-store, must-revalidate' />
<meta http-equiv='Expires' content='0' />

Regard,

Rewati Raman

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Jul 18, 2017 at 07:58 PM

    The solution to your cache issue must be resolved with the answer to your earlier post.

    Meanwhile, you can actually also trigger the browser to use the latest files on UI, by running the report /UI5/repository_load in the backend SAP system.

    Regards,

    Sharath

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thanks Sharath.

      I am sure it is front issue bcz when we do ' empty cache and hard reload ' immediately latest code gets reflected.

      Btw after adding your piece of code i am getting some other issue.

      ~Rewati

  • Jul 13, 2017 at 06:57 AM

    Hi Rewati,

    Did you happen to go through below blog and thread?

    https://blogs.sap.com/2015/06/16/sap-fiori-cache-management/

    https://archive.sap.com/discussions/thread/3451121

    Hope this helps.

    Regards,

    Prithviraj

    Add comment
    10|10000 characters needed characters exceeded