Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [egit-dev] Conditional request behaviour

On Tue, Mar 15, 2016 at 4:50 PM, Denis Yuen <Denis.Yuen@xxxxxxxxxx> wrote:
Hi,

We're currently using org.eclipse.egit.github.core to talk to the GitHub api as part of an application.
Is there any way in this library to make use of conditional requests https://developer.github.com/v3/#conditional-requests to reduce the number of requests that we're making?

e.g. when using the ContentsService http://javadox.com/org.eclipse.mylyn.github/org.eclipse.egit.github.core/2.1.4/org/eclipse/egit/github/core/service/ContentsService.html is there any way to request ETag values or to set the "If-None-Match" or "If-Modified-Since" headers?

currently org.eclipse.egit.github.core is using HttpURLConnection to execute HTTP requests which doesn't provide caching.
A possible solution to fix this could be to port this bundle to use Apache httpclient instead which provides a caching implementation

Maybe you are interested to contribute that ?

-Matthias 

Back to the top