Hm. ```val request = chain.request().newBuilder()....
# squarelibraries
c
Hm.
Copy code
val request = chain.request().newBuilder().removeHeader("If-None-Match").build()
Didn't work as an application interceptor. Going to give network interceptor a whirl
y
Network Interceptor will be too late.
Too late if you want to completely disable the effect of caching for the request.
You could also clone the client and remove the cache.
c
Hm. I wonder why adding logs in my interceptor when it is set as an application interceptor says there are no headers though.
I haven't gotten to try it as a network interceptor yet because of dagger issues, but yeah. I would have thought that application interceptor would've been the right place for this.
According to this stackoverflow answer, a network interceptor would not be too late? https://stackoverflow.com/questions/60976886/how-to-remove-header-accept-encodinggzip-with-okhttp Any thoughts Yuri?