We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpPrograms › accessing the browser's cache
Page Index Toggle Pages: 1
accessing the browser's cache (Read 400 times)
accessing the browser's cache
Feb 16th, 2008, 3:47pm
 
hi all,

does anyone know if there is a way to read the content of the browser's cache and write files in it?
Re: accessing the browser's cache
Reply #1 - Feb 17th, 2008, 1:56am
 
wouldn't this be a serious security issue? by cache do you mean the "temporary internet files"?
maybe a signed applet can give you file-access... not sure about that though.
Re: accessing the browser's cache
Reply #2 - Feb 17th, 2008, 6:04am
 
Well, consider something like youtube: Videos are streamed to the internet cache, so that if you revisit a video page 2x in quick succession, it resumes downloads.

Many websites already do this... and it is just about necessary for any sort of online applet game service that requires a decent amount of streamed media...

If someone who has signed applets that have file access before could write a simplified tutorial on what the limits are, the community would be greatly benefited.
Re: accessing the browser's cache
Reply #3 - Feb 17th, 2008, 11:03am
 
The browser does the caching for youtube, not the flash code. Browsers can also cache java applets, and will do so on their own.

It's not the websites that do the caching in any way shape or form.
Re: accessing the browser's cache
Reply #4 - Feb 17th, 2008, 11:49am
 
as far as i know there are two caches involved with applets, the browser-cache and the java-cache. once the applet has loaded any files you fetch from inside the applet will not be passed thru the browser anymore. the applet (java) will load them directly and store them into the java-cache.
Page Index Toggle Pages: 1