Princeton-CDH / bluemountainsprings

A RESTful API to Blue Mountain
0 stars 2 forks source link

Provide Last Modified and ETag headers #77

Open rlskoeser opened 7 years ago

rlskoeser commented 7 years ago

For any API endpoint generated from a single document in eXist, you can use the eXist document last modified and document etag methods. For any API endpoint generated based on the collection, use the time from the most recently modified document in the collection (similar should work for a filter or search result).

rlskoeser commented 7 years ago

Relates to #76 - providing these headers would make HEAD requests even more valuable.