Prototype web histogram presenter seems to cache images and not auto refresh
At least using Firefox 3.6.24 on Scientific Linux. I think there's some HTML tag that tells the browser to not cache images that should be used. Vassil knows what this is (and suggested it) so can elaborate. Also, can it auto refresh every 5 seconds, at least for the moment until it is customizable?
Updated by Verguilov, Vassil almost 12 years ago
The server response should set the Cache-control HTTP header to "no-store"
Here it is explained how to do it with django:
I suggest you use the never_cache decorator.
Updated by Jackson, Mike almost 12 years ago
The caching isn't the browser or Django. Just now, it's the implementation. It reads a directory of EPS, creates PNG thumbnails and stores these. If the page is reloaded it only creates new thumbnails for which there haven't been any already created. This was to avoid a refresh of a page with many images grinding to a halt as it attempted to regenerate all the thumbnails.
I've checked in a new version (11) that:
- Regenerates the thumbnails every time the index page is reloaded.
- Adds the following to the HTML to give a browser refresh every 5s (tested on IE, Firefox and Safari):
<meta http-equiv="REFRESH" content="5">
Updated by Tunnell, Christopher almost 12 years ago
- Tracker changed from Bug to Feature
- Subject changed from web histogram presenter seems to cache images and not auto refresh to Prototype web histogram presenter seems to cache images and not auto refresh
- Status changed from Open to Closed
- % Done changed from 0 to 100
Which is perfectly reasonable. Just small requirements for testing things out today.