{"push_id":736468581,"size":1,"distinct_size":1,"ref":"refs/heads/download_handlehttpcaching_local","head":"99de7890e342e53be7dbb2838e288db37975c2e1","before":"20b6bb03bd77404377a2100e0ce81dd8a6596684","commits":[{"sha":"99de7890e342e53be7dbb2838e288db37975c2e1","author":{"email":"492bbd9949cb08d095ba79b9bfaafdf77dc93f28@gmail.com","name":"Simone Gotti"},"message":"rkt: handle http caching (ETag and Cache-Control max-age)\n\nthis patch handles ETag and Cache-Control: max-age server headers.\n\nIt saves the Etag, the max-age and the current download time in the store's\nremote data.\n\nBefore downloading it checks if the current time is before the download time\nplus maxage, if so it uses the current store image.\nDuring an ACI download it also sends the saved ETag, if the server answers with\na 304 Not Modified status then the store image is used.\n\nThe signature will be downloaded anyway because it's not cached in the store\nand it's usually downloaded before the ACI.\n\nThis patch also provides db migration code (to version 2) and related tests as\nthe store's remote struct changed.\n\nSigned-off-by: Simone Gotti <simone.gotti@gmail.com>\nCo-Authored-By: Hector Fernandez <hector@elasticbox.com>","distinct":true,"url":"https://api.github.com/repos/sgotti/rkt/commits/99de7890e342e53be7dbb2838e288db37975c2e1"}]}