javascript refreshing images every 5 seconds crashes web browser?
<p>I have a simple javascript code in an html page, refreshing an image every 5 seconds:</p>

<pre><code>function refresh() {
    var unique = new Date();
    document.images.EdwinImage.src = "http://192.168.0.125:8002/img?width=800&amp;height=480&amp;rnd=" + unique.getTime();
}
</code></pre>

<p>This code works fine on desktop browser, but on Android, it works only for some times then the browser closes without an error message and returns to the home screen. 
After the crash, I look in the browser settings (via Settings->Applications->Manage Applications) I noticed the browser application has a 55MB cache... which seems to be the problem... even though I don't need the image to be cached since I request a new one every time. Yes, I have the correct html header to disable caching.</p>

<p>Here are the headers I'm using:</p>

<pre><code>&lt;meta http-equiv="Cache-control" content="no-cache"&gt;
&lt;meta http-equiv="PRAGMA" content="no-cache"&gt;
&lt;meta http-equiv="expires" content="0"&gt;
</code></pre>

<p>I'm using Android 2.2 on a Archos HT7V2 and the problems happens on all browsers I tried  (stock browser, opera mini, dolphin hd).</p>

<p>How can I solve this problem? Or any ideas of what happened ?
Thank you,</p>
