On Feb 11, 2010, at 9:50 AM, tanos_8888888888 wrote:
As the file gets parsed, an info window contains an image that is updated and fed from a webcam. The image is always overwritten with the same file name by the webcam. When going to the map, unless you F5 or refresh your browser, you do not see the latest image. How can I have the latest image there? Ideally I would like to have it updated without having to update the whole map...
You could always attach a random, unused cgi parameter to the end of the url for the image. There is nothing top stop you requesting, say, "http://www.yoursite.com/yourimage.jpg?23jk4hg234j=1 ". Just make a hash of some random value and use that for the parameter on each image url. A hash of the image's timestamp should work great in this case. And of course, your server would just serve up the image as usual, completely ignoring the parameter. Alternately, make it something like "?nocache=<hash>" if you want clarity.
This forces the browser to think that each image is actually different, which prevents caching. I'm pretty sure it's a common technique which is used to overcome aggressive caches.
-G -- You received this message because you are subscribed to the Google Groups "Google Maps API" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-api?hl=en.
