slyfox
11-29-2003, 09:52 AM
Subject says it all...
Any ideas or suggestions will be great:p
Any ideas or suggestions will be great:p
|
Click to See Complete Forum and Search --> : How do I clean cache with javascript? slyfox 11-29-2003, 09:52 AM Subject says it all... Any ideas or suggestions will be great:p Vladdy 11-29-2003, 09:56 AM Don't think you can, why would you want to do it in the first place :confused: slyfox 11-29-2003, 10:12 AM ok, it goes like this: one of my clients has educational software written in html, using lot's of javascript, flash animations and is opened in it's own browser that takes over the screen (browser done in java... i think)... so program is reasonably large.. (450 MB +-) The problem is that while clicking through the program(pages) it eats memory more and more, now they need something that can clean that, going from one page to another. Any suggestons? 96turnerri 11-29-2003, 10:47 AM <script type="text/javascript> if(window.self.location.href.indexOf("http://")==-1) window.location=""; </script> this should stop it going into cache in first place 96 slyfox 11-29-2003, 02:16 PM Thanx 96turnerri!! Now I got: if(window.self.location.href.indexOf("http://")==-1) { window.location=""; } and I got: <a href="link1.htm">link one</a> <a href="link2.htm">link two</a> How do I go about this further:confused: batfink 11-30-2003, 03:10 AM No need for JS, just adjust the temporary internet files folder settings in your browser (for IE found in tools - internet options - settings) Set the max amount of disk space to use and this cache will be overwritten as necessary. slyfox 11-30-2003, 06:07 AM Thanx for the suggestion batfink!!:) There is just one complication though, the software gets distributed and I can't just limit the diskspace on each users browser.. your solution makes sense and is great, but for the situation it might be difficult or maybe impractical as the user still has to use internet(and have everything normal) apart from the educational software. Unless it can be set for the softwares browser only, if not there must be another approach.. but I love your idea, it would make life easier;) Is there anything else you can think of? 96turnerri 11-30-2003, 07:18 AM put it in the head of page <head> <script type="text/javascript"> if(window.self.location.href.indexOf("http://")==-1) { window.location=""; } </script> </head> 96 batfink 11-30-2003, 01:31 PM What I suggested will only restrict space used by the WEB browser, I cannot see that affecting anything. The cache is only there so a page and its content do not have to be downloaed all over again, i.e. just there to speed things up. Have I misread your response? 96turnerri 11-30-2003, 01:34 PM yes u have lol, he caould set the cache on his computer but he cant do it to all the other computers its getting put on because its being distributed therefore he needs an alternative way such as what i showed him batfink 11-30-2003, 02:27 PM Every browser will have a default cache level set so there is no need to go to each machine. 96 I understand your code but not how it stops the page being cached? Please explain. 96turnerri 11-30-2003, 02:45 PM you cannot open the page unless it got http:// at the front so no local opening, ie caching because the browser will save it but cant reopen it. all browsers do have a set cache limit but what happens when users change it and stuff, you need some thing in the webpage coding do to that im afraid slyfox 11-30-2003, 03:34 PM why will it not work locally...? local also have the "http://" another thing... mut I set the hyperlink show "http://..somelink.htm" instead of "somelink.htm" if it's the first, again it won't work (dunno where it's gonna be on users pc..) if it's the second, then great, it will work... Solution Found? 96turnerri 12-01-2003, 01:59 PM your post makes no sense to me at all, here i try answering 1)local files dont have http:// they have X:// 2)No you dont 3)this bit i got lost at if it's the first, again it won't work (dunno where it's gonna be on users pc..) if it's the second, then great, it will work... Solution Found? webdeveloper.com
Copyright Internet.com Inc., All Rights Reserved. |