flush the cache of browser from the platform OS

flush the cache of browser from the platform OS



Is there a way to flush/DELETE the cache of Internet Explorer (11) from the platform OS ? 


You're talking about a programmatic way of deleting the client browser cache... is that right?  I don't think you can do that these days... at least I hope not.  That would be a terrible security breach.

Hello Jorge,

You shouldn't do that (even if it is possible, what I don't think it is).

May I ask why do you need this? Possibly there are better ways to accomplish what you really need to do (the reason behind the question).


ok. The customer required it. Reason? As you know if the cache gets inconsistent the app gets weird behavior as it happened yesterday. Only after flushing the cache of the browser (IE 11) the app returned to the normal. Some info was disappearing, or there was some data that was inconsistent (it had old values, or mixed values for no apparent reason or misbehaved actions). I told that this was unlikely to be possible (flush BROWSER cache from OS). Imagine that someone do not want to loose some information in the cache and there is an external action that put it in danger. Well, I suppose, as a good rule of thumb is good practice to delete cache from time to time. 

it is a yes for your question, David. I agree! 


Hello Jorge,

As far as I know, there is NO way to clear the Browser's cache from an application.
This is not a problem of OutSystems, it is a matter of security.

But you can tell the borwser to NOT cache the content of your pages, using META tags.

<meta http-equiv='cache-control' content='no-cache'>
<meta http-equiv='expires' content='0'>
<meta http-equiv='pragma' content='no-cache'>

In HttpRequestHandler you have methods to add meta tags to your application.

Of course, your application will suffer big performance penalty.