Unexpected dependency on httpclient-cache
See original GitHub issueDescription
Using the spring-boot-starter httpclient-cache
seems to be a mandatory dependency, despite no caching
is enabled.
Expected Behavior
If no caching
is configured, httpclient-cache
should not be a mandatory depdendency.
Actual Behavior
In DefaultRiptideRegistrar
the class HttpCacheStorage
is always loaded, failing if httpclient-cache
is not on the classpath.
Possible Fix
Only try to load the class if dependency is available.
Steps to Reproduce
- Add the spring-boot-starter to your app
- Configure a client (without
caching
) - See
java.lang.NoClassDefFoundError: org/apache/http/client/cache/HttpCacheStorage
Your Environment
Running version 3.0.0-RC.2
.
Issue Analytics
- State:
- Created 4 years ago
- Comments:9 (5 by maintainers)
Top Results From Across the Web
Is Dot Net HttpClient Unexpectedly Caching Responses?
I'm attempting to write a curl-like tool that demonstrates the effect of various HTTP caching headers on dot net's HttpClient class.
Read more >HTTPClient Caching in .Net - Technovert
A static property DefaultCachePolicy once set on WebRequest(or HttpWebRequest) can affect the caching behavior for all HttpClient instance.
Read more >DotNet HttpClient Cache - Notes
DotNet HttpClient Cache. Everywhere in our code we may see something like (pseudo):. var cached = _cache.Get("foo"); if (cached) { return cached; } ......
Read more >Caching challenges and strategies - Amazon AWS
Data from this dependency is a good candidate for caching if such a cache would ... in the service client (for example, by...
Read more >Caching With Apache HTTP Client and Spring RestTemplate
Getting Started. Initialize two Maven projects for the product service and the web server. Product Service Dependencies. <parent> <groupId>org.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
yep
I’d like to have it as a real optional dependency.