[openstreetmap-website] Cache-control in deleted /node/# API responses (#384)
pnorman
notifications at github.com
Sun Jul 28 05:40:07 UTC 2013
When requesting a deleted element with the ``/(node|way|relation)/#`` calls you get different Cache-Control headers depending on the element type.
For nodes: ``Cache-Control: no-cache``
For ways: ``Cache-Control: max-age=0, private, must-revalidate``
For relations: ``Cache-Control: max-age=0, private, must-revalidate``
We should probably be returning ``Cache-Control: max-age=0, private, must-revalidate`` as that's what's returned when an object is found, and the deleted response is really that we found the object but it was deleted and so has the same cachability.
For reference, missing objects return ``Cache-Control: no-cache``
---
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/issues/384
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20130727/2fc7bca3/attachment.html>
More information about the rails-dev
mailing list