cancel
Showing results for 
Search instead for 
Did you mean: 

Ho to clear Cache in SAP UI5 Application??

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Sharathmg
Active Contributor
0 Kudos

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

Former Member
0 Kudos

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

0 Kudos

Hi Sharath, how do you actually run /UI5/UI5_REPOSITORY_LOAD to force the browser to use the latest UI version of a fiori app. Do you download, upload or delete it? I have an issue with a Fiori app where many users only see the latest version of the UI after clearing their browser cache or by using a different browser. Edge seem to always get the latest version after a change but not Chrome. Obviously we don't want to ask users to clear their browser cache every time so was wondering if there is a way to trigger a browser cache clear centrally. Cheers.

Sharathmg
Active Contributor
0 Kudos

Hi Christian,

In my experience, the cache clearing on the server(which is triggered by running the reports on SAP GUI) the server send the re-indexed files i.e. updated files to the Browser client.

The issue is commonly observed in Dev and Q clients are frequent files are being changed.

Overall, its a trade off design so that users performance is not hampered by retrieving all the files at all times and use the session to speed up part of loading. So, in Production system, its rare to find this issue as code is moved at select periods.

Best Regards,

Sharath

Answers (1)

Answers (1)

prithvirajr
Contributor
0 Kudos

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