eclipse-archived / ceylon-herd

The Ceylon repository web application
Apache License 2.0
21 stars 11 forks source link

Add X-SHA1 header #264

Open tombentley opened 8 years ago

tombentley commented 8 years ago

When serving artifacts if the Herd added at X-SHA1 HTTP response header it would save the CMR from having to make further request for the .sha1 file.

FroMage commented 8 years ago

VERY good point!

quintesse commented 8 years ago

Nice idea!

tombentley commented 8 years ago

A similar optimization would be a X-ExternalDescriptor: module.properties (or X-ExternalDescriptor: module.xml or X-ExternalDescriptor: none) header when the requested resource (currently always a .jar) had a related external module descriptor. Right now it looks like CMR has to make separate requests to find out if such an descriptor exists.