rlalfo / google-http-java-client

Automatically exported from code.google.com/p/google-http-java-client
0 stars 0 forks source link

Need a method set cache true/false #200

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
External references, such as a standards document, or specification?

Java environments (e.g. Java 6, Android 2.3, App Engine, or All)?
All

Please describe the feature requested.

In the class NetHttpRequest, the connection cache default is false

NetHttpRequest(HttpURLConnection connection) {
    this.connection = connection;
    connection.setUseCaches(false);
    connection.setInstanceFollowRedirects(false);
  }

Need a method set the value

Original issue reported on code.google.com by lindaan...@gmail.com on 18 Feb 2013 at 10:34

GoogleCodeExporter commented 9 years ago

Original comment by ngmic...@google.com on 20 Feb 2013 at 3:24

GoogleCodeExporter commented 9 years ago

Original comment by yan...@google.com on 9 Apr 2013 at 2:10

GoogleCodeExporter commented 9 years ago
a new Issue was open - 
https://code.google.com/p/google-http-java-client/issues/detail?id=215 to 
enable\disable caching on the HttpRequest level.

For now, it was decided to remove "connection.setUseCaches(false);" as you can 
see in the following CL - https://codereview.appspot.com/8591043/

Original comment by pele...@google.com on 9 Apr 2013 at 6:33

GoogleCodeExporter commented 9 years ago

Original comment by pele...@google.com on 12 Apr 2013 at 12:47