cancel
Showing results for 
Search instead for 
Did you mean: 

How to clear the cache of the browser after logout from the sapui5 application?

raghuganapath
Participant
0 Kudos

Actually I have used the customized login screen, after clicking on logout its coming back to the login screen but if I click on the browser button its still navigation to the previous screens, how to clear the cache in sap ui5 application.

Now I have added below tags in index file but still it is not working.

<meta Http-Equiv="Cache-Control" Content="no-cache">

<meta Http-Equiv="Pragma" Content="no-cache">

<meta Http-Equiv="Expires" Content="0">

Thanks & Regards,

Raghavendra

Accepted Solutions (0)

Answers (1)

Answers (1)

maheshpalavalli
Active Contributor
0 Kudos

If you want to clear the history of back button then on the press of back button, do your custom logic(assuming as you said it's a custom logon) then after that, in the code, clear the back button history..

How to clear the back button history? Simple way is call replace url, usually you can divert it to login page or Google page or company website.

https://stackoverflow.com/questions/8969878/in-javascript-how-do-i-clear-the-back-history-1

BR,

Mahesh