I have blobcaching enabled on a publishing site.
For authenticated users the max-age property in the Cache-Control HTTP header is set properly according the setting in the blobCache element in web.config, for anonymous users it is set to 0. This causes a lot of 304 requests by the browser trying to see if an image has changed and affects performance negatively. This is a problem only for files in the "/Style Library".
There are a few mentions of this problem in blogs but no solution found so far. Is there any way I can fix this or force setting of this header through some other means? I've tried implementing an HTTP handler to do this but it still comes up as 0.