Servlet clean temporary files
Hello,
I wanna to delete user browser temporary files when hes opening my website. Is it possible?
(I wanna to delete temporary files, because of javascript, because I often change them.. always my users gets errors, because they didn't clean temporary files. Maybe to reload javascript are other way? don't need to delete browser temporary files?)
P.S. sorry for my bad english.
Regards,
sAdFella
Re: Servlet clean temporary files
Welcome to Java Programming Forums.
Where you got stuck?
Read the Forums Rules.
Re: Servlet clean temporary files
At the moment, im just thinking about doing that.
But I had some questions:
1) Is this best way, by trying to access users folder where is saved all temporary files and delete?
2) Can I access that folder from server side and delete the content?
3) Maybe can i do anything else, that always reload javascripts.
Im looking for advise.
Regards,
SadFella
Re: Servlet clean temporary files
1. No.
2. Not without User's permission.
3. Yes.
Re: Servlet clean temporary files
Quote:
Originally Posted by
sAdFella
Hello,
I wanna to delete user browser temporary files when hes opening my website. Is it possible?
(I wanna to delete temporary files, because of javascript, because I often change them.. always my users gets errors, because they didn't clean temporary files. Maybe to reload javascript are other way? don't need to delete browser temporary files?)
P.S. sorry for my bad english.
Regards,
sAdFella
I suggest you to use some sort of cache expiration (can done through HTML and server side script). That way the browser always gets the latest content.