How to clean browser cache every time when we are impersonating with another user?

JayD1
Kilo Guru

Hi Experts,

As i am working in service portal and there is an intermittent issue occurring, explained below:

when I am testing widgets in portal some of the widgets is not visible to the intended users(we have used user criteria to restrict access)

once I am cleaning the browser cache I am able to see the widgets which I am supposed to see.

why this issue is happening and do we have any way to clean the browser cache every time when we are impersonating with another user. 

any help would be appreciated.

Thanks,

joe

 

9 REPLIES 9

Issues will appear in production. Impersonation is fine to analyze that.

 

What we do after we have analyzed the issue on production, is try to reproduce it on the developer instance. Sometimes it helps to export certain records and import them to our development instance.

 

Let me know if you have any further questions. We are happy to help 🙂

before moving to prod, do we have any permanent solution so that it won't happen in production.

because this is not the best practice to ask the existing users to clean their cache.(who have been using the instance for long) 

So if there is an issue caused by the users browser Cache, you want another solution besides the user clearing their browser cache? I don't have a solution for that.

If it is the ServiceNow cache. you can clear the cache for all users by using cache.do. you can trigger it via script as well:

gs.cacheFlush();

 

A good article on it can be found here:

https://community.servicenow.com/community?id=community_blog&sys_id=81ada2a9dbd0dbc01dcaf3231f961913

Willem
Giga Sage
Giga Sage

Hi Joe,

As a good practice I always do impersonations in an Incognito window or different browser. This will create a new session and you don't have an issue with browser cache. Especially when you use incognito.

This also helps you keep track of screens where you are impersonating and where you are for example admin. Especially when you have multiple tabs open.

Hope this helps 🙂

Willem
Giga Sage
Giga Sage

Hi Joe,

Hope you are doing well.

Is your question resolved? Or do we need to follow-up on this?

Please mark the answer as correct if it solves your question. This will help others who are looking for a similar solution. Also marking this answer as correct takes the post of the unsolved list.
Thanks.

Kind regards,

Willem