diff --git a/README.md b/README.md index 84b8bee..f6c6896 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ An okhttp3 interceptor that implements stale-if-error Cache-Control directive Example: ``` OkHttpClient.Builder client = new OkHttpClient.Builder(); - client.addInterceptor(new StaleIfErrorInterceptor()); + client.addInterceptor(new StaleIfErrorInterceptor(1, TimeUnit.HOURS)); ``` # Use with Gradle @@ -16,4 +16,4 @@ repositories { } ``` -In your app build.gradle, add: `compile "com.github.PeelTechnologies:okhttp-staleiferror-interceptor:1.0.0"` +In your app build.gradle, add: `compile "com.github.PeelTechnologies:okhttp-staleiferror-interceptor:1.0.1"` diff --git a/pom.xml b/pom.xml index 883ffd8..9d22455 100644 --- a/pom.xml +++ b/pom.xml @@ -12,7 +12,7 @@ com.github.PeelTechnologies okhttp-staleiferror-interceptor - 1.0.0 + 1.0.1 jar UTF-8