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 & HelpIntegration › Problem with cache [ing] http url from loadStrings
Page Index Toggle Pages: 1
Problem with cache [ing] http url from loadStrings (Read 694 times)
Problem with cache [ing] http url from loadStrings
Aug 17th, 2006, 8:43pm
 
Hello.

When I use Opera browser and write:
loadStrings("http://someurl...");
in loop of course, I found that Opera cache this url for me and my data isnt updated.

When I change in Tools/Preferences/Advance/History/Check documents: [default set from 5 hours] to Always - all is working properly. In FF all its ok.

I tried add some headers to head html page:
<meta HTTP-EQUIV="pragma" CONTENT="no-cache">
but I have a question - it is possible to add this headers to applet to ? [inside of applet or something] ? Maybe this can solve my problem ?

Best regards
Kanedaaa
Re: Problem with cache [ing] http url from loadStr
Reply #1 - Aug 18th, 2006, 9:45am
 
the easiest way to force un-caching of an URL is adding a random number as query string...

Code:
loadStrings("http://example.org/?"+(int)random(Integer.MAX_VALUE)); 



hth!
Re: Problem with cache [ing] http url from loadStr
Reply #2 - Aug 19th, 2006, 3:37pm
 
Thats great and simple idea :]
Thank You for solution.

Kanedaaa
Page Index Toggle Pages: 1