[openstreetmap-website] Content-Length on HEAD requests (#406)

pnorman notifications at github.com
Thu Aug 1 07:52:33 UTC 2013


On a HEAD request for an existing node the rails port returns `Content-Length: 0`.

On a GET request for that same node it returns (in this case) `Content-Length: 400`.

RFC 2616 states
> The metainformation contained in the HTTP headers in response to a HEAD request SHOULD be identical to the information sent in response to a GET request.

It then goes on to suggest that caches can use a difference in `Content-Length` to detect when the content has changed.

Probably not worth any real concern, but my integration testing shows a failing test, so I wanted a bug number.

---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/406
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20130801/80998299/attachment.html>


More information about the rails-dev mailing list