By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,679 Members | 2,749 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,679 IT Pros & Developers. It's quick & easy.

How to delete temporary files from browser history through code

P: 23
Hi,
Can any one help me in solving the below problem

How to delete browser temporary files through javascript code
thanks
ram
Sep 27 '07 #1
Share this Question
Share on Google+
7 Replies


gits
Expert Mod 5K+
P: 5,225
hi ....

for security reasons you cannot do that with standard javascript ... may be there are ActiveX Controls or advanced Mozilla-privileges that may allow deleting files ... but with standard javascript you cannot do that ... imagine a website that deletes files from your system :) ... nobody wants that ... what is your original problem? you don't want something have cached?

kind regards
Sep 27 '07 #2

P: 23
hi ....

for security reasons you cannot do that with standard javascript ... may be there are ActiveX Controls or advanced Mozilla-privileges that may allow deleting files ... but with standard javascript you cannot do that ... imagine a website that deletes files from your system :) ... nobody wants that ... what is your original problem? you don't want something have cached?

kind regards


Actually i am generating RSS_FEED in my site when ever i click on RSS_FEED it is picking from cache not original one, if i refresh the page manually then it is showing the correct data. that is the problem now can u help
thanks
ram
Sep 27 '07 #3

gits
Expert Mod 5K+
P: 5,225
could you post how you call the update? onclick of a link?

kind regards
Sep 27 '07 #4

P: 23
could you post how you call the update? onclick of a link?

kind regards


Hi,

I tried with window.open('path');
and
window.location.href='path';
thanks
ram
Sep 28 '07 #5

gits
Expert Mod 5K+
P: 5,225
try using:

Expand|Select|Wrap|Line Numbers
  1. window.location.href = 'path?' + (+ new Date);
kind regards
Sep 28 '07 #6

P: 23
try using:

Expand|Select|Wrap|Line Numbers
  1. window.location.href = 'path?' + (+ new Date);
kind regards



Oh,
Thanks gits it is working fine, thanks a lot,
thanks
ram
Sep 28 '07 #7

gits
Expert Mod 5K+
P: 5,225
... with that solution we avoid reading the file from local cache through appending a unique value as querystring ... a simple way to achieve that goal :)

glad to help you with that ... post back to the forum anytime you have more questions

kind regards
Sep 28 '07 #8

Post your reply

Sign in to post your reply or Sign up for a free account.