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
yschimke
02/16/2022, 8:14 AM
Network Interceptor will be too late.
yschimke
02/16/2022, 8:17 AM
Too late if you want to completely disable the effect of caching for the request.
yschimke
02/16/2022, 8:17 AM
You could also clone the client and remove the cache.
c
Colton Idle
02/16/2022, 4:33 PM
Hm. I wonder why adding logs in my interceptor when it is set as an application interceptor says there are no headers though.
Colton Idle
02/16/2022, 4:35 PM
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.