Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Clearing browser cache???

Status
Not open for further replies.

milsnips

Programmer
Jan 11, 2001
6
AU
Can anyone help me with some code that will delete the internet files (like when you choose from the tools/options menu?
I dont know if this can be done using ASP, or just plain HTML.
Thanks anyway.

PM.
 
PM, this will be pretty hard I'm afraid, since you want to clear the cache of the browser. The way the Web works, it is difficult to do anything on the client from the server, so I don't think you can use ASP to do it for you, maybe an ActiveX object can do it. But remember that the client will always have to approve actions to be done by a webapp on his machine. Otherwise we call it hacking ;-).
There is of course a way to prevent certain pages from being cached. If that's what you want as an alternative, use a meta-tag:

<meta http-equiv=&quot;Expires&quot; content=&quot;-1&quot;>

Hope this helps... <webguru>iqof188</webguru>
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top