RFE: Support for conditional GET / If-Modified-Since header #209

Closed
atodorov opened this Issue Jun 28, 2012 · 3 comments

Comments

Projects
None yet
3 participants

I have an application which does send lots of GET requests to your website.

To minimize network load and bandwidth usage I'm sending If-Modified-Since header with every request. Unfortunately the API doesn't seem to support that (or it be configured at present). Please fix it.

I'm using the JSON interface, .e.g. GET http://api.metacpan.org/v0/release/SOMETHING

Member

monken commented Jul 10, 2012

Definitely a good point.
On the other hand, there is usually a better way to query the API then sending tons of GET requests to individual endpoints. What data are you interested in?
Also, you should enable gzip compression on your client.

I'm fetching the RSS for newly added distributions once every hour using conditional GET in case it didn't change. Any idea if this can be done more efficiently?

Owner

ranguard commented Nov 13, 2014

Closing as part of Nov 2014 cleanup - we will review this in any case when the new version of API goes via our CDN

@ranguard ranguard closed this Nov 13, 2014

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment