neerolyte/repoproxy — Issue #25: Update repo metadata based on IMS responses
Author: neerolyte
Created: 2011-10-22 02:52:51+00:00
State: open

Rather than just updating repo metadata based on our copy being old, we should actually perform an IMS GET, e.g.:

$ curl -I --header "If-Modified-Since: Fri, 21 Oct 2011 22:20:09 GMT" http://archive.ubuntu.com/ubuntu/dists/lucid/Release
HTTP/1.1 304 Not Modified
Date: Sat, 22 Oct 2011 02:51:19 GMT
Server: Apache/2.2.14 (Ubuntu)
ETag: "a0093a-df9a-48563681f9780"
Expires: Sat, 22 Oct 2011 02:51:19 GMT
Cache-Control: max-age=0, s-maxage=3300, proxy-revalidate

This means we can poll comparatively often with very low overhead.