Mozilla doesn't refresh the audio tag file. Mozilla's faulty audio
<div class="formRow"> <div class="field"> <img style="margin-left:91px; margin-top:-6px;" class="image" src="http:www.xyz.com/captchaServlet"> //the above line calls a servlet for the image </div> </div></br> <div class="formRow"> <div class="field"> <audio style="margin-left:91px;" controls="controls"> <source src="http:www.xyz.com/getSound" type="audio/wav"> //the above line calls servlet for audio file Your browser does not support this audio format. </audio> </div> </div> // in the above code whenever I refresh the page a new image is loaded by calling the servlet but a new audio is not loaded, the call is not made to the sound servlet.
cor-el moo ko soppali ci
All Replies (5)
It is usually best to add a random part to such an URL like http:www.xyz.com/captchaServlet?xxxxxx (e.g. the current time in epoch format) to make sure that Firefox doesn't use the previous image as stored in the cache, but requests a new image from the server.
I have tried that already. But it still doesnt work. I dont know what to do. My whole project is on hold because of this bug!!
And its not the image its the audio tag that doesn't get refreshed. new image gets called everytime
Then try to d the same with the audio source src attribute.
A good place to ask advice about web development is at the MozillaZine "Web Development/Standards Evangelism" forum.
The helpers at that forum are more knowledgeable about web development issues.
You need to register at the MozillaZine forum site in order to post at that forum.
I have done it to audio src attribute only. Image attribute does not need randomly generated URL.