Open stepelu opened 8 years ago
You’re description may be confusing for people that don't know HTTP well. There isn’t any problem with the status code, the API just doesn’t support HTTP header If-Modified-Since. So what you really want is to add support for cache-conditional requests.
Anyway, +1 for this request.
Yes, this is a feature request, not a bug report.
My use case is to check frequently for updates to the repo without abusing the server's bandwidth.
Luarocks could be improved similarly with a caching optimisation based on this.
For the cmd below, I would expect to get a
< HTTP/1.1 304 NOT MODIFIED
(previous run was just 5 seconds before that) instead of code 200:I am trying to figure out whenever the manifest gets updated so I can trigger a build step. I can just download the manifest and compare hashes, but I am aiming at minimising data transfer. Could this be fixed? Alternatively, is there another mechanism in place to achieve the stated goal?