You could do this with ActiveX I guess, but I'm sure there's a cleaner solution to what you're trying to do.
You are looking on the problem from the wrong end - You shouldn't try to clear the user's cache since it is something you can't control (there might be a hack somewhere which allows you to do it but that solution will not last long) You should spend time to define a "smart" (domain specific) cache model - for example set different expiration to different folders. You should also understand that some elements can't be cached - for example: If you have a picture which changes every 10 min. For this situation I would upload that picture to flicker or other picture server and set the link to that server ==> saved you bandwidth - which has the same effect as caching. There is other solution - write your own cache handler by capturing the HTTP requests coming to the server- this is done using the ETag HTTP header field . Good luck
You can't delete the users temporary files with javascript. I thing you are approving your problem the wrong way. You can tell the browser to cache or not to cache the files from xhtml.
well the only way to permanently remove your computer files and erase your hard drive is to use some hard drive cleaner software.
This is a very easy problem. Just put this in a text file, save it as "delete all.vbs" and then run it. You need admin rights to all folders for it to work: 'Written by Liam (SiX) Deeney 'Freeware with no restrictions 'This script will delete all users temporary internet files. 'If you don't know how this works or what it does then do not run it. 'I accept no liability for this being run outside of the environment 'for which it was intended. 'This will only work with Windows XP on error resume next msgbox "This script will take some time to complete, You will receieve notfication when it is finished. You must remain logged on for it to work. You may continue to work whilst it runs." Screen.Mousepointer = vbHourGlass const HKEY_LOCAL_MACHINE = &H80000002 'You can edit this to another computer's name if you have admin rights to it. strcomputer = "." set ObjRegistry=GetObject("winmgmts:\\" & strcomputer & "\root\default:StdRegProv") set ObjFSO = CreateObject("Scripting.FileSystemObject") 'create array of paths to users profiles using registry strKeyPath = "SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProfileList" objRegistry.EnumKey HKEY_LOCAL_MACHINE, strkeypath, arrSubKeys For Each objSubKey in arrSubKeys 'for each profile on the local machine strvaluename = "ProfileImagePath" strSubPath = strkeypath & "\" & ObjSubKey objRegistry.GetExpandedStringValue HKEY_LOCAL_MACHINE, strSubPath, strValueName, strValue 'Go through each users' temp internet folder and delete files Dim Fol:Fol = strValue & "\Local Settings\Temporary Internet Files\Content.IE5" if objFSO.FolderExists(Fol) then set f = objFSO.GetFolder(Fol) set fc = f.SubFolders for each f1 in fc f1.delete next end if next Screen.MousePointer = vbDefault msgbox "Script Complete"