r4238 bugfix: image caching was broken with some browsers