artemp/trac2github — Issue #252: WMS Servers provide only minimal HTTP headers
Author: artemp
Created: 2011-10-09 20:23:21+00:00
State: open
Labels: OGC_Server__WMS_

In implementing a bit of caching between a Mapnik WMS server and users, I've found that all of the existing WMS modules only send Content-Type headers, while headers like Content-Length, Cache-Control, and Expires are quite necessary for the ability to cache content and for browsers to attempt to cache it locally. Cache-Control and Expires could be easy additions (which I've already made), but since they clearly are variable options, maybe that kind of stuff would belong in mod.conf or somewhere similar? Sending content-length might require finding the length of the image string if the Mapnik Image object doesn't support a size attribute, but this is still a fairly simple change.

I can roll the patches if these changes sound useful to users in general, I've been working off of svn head.