-
Notifications
You must be signed in to change notification settings - Fork 85
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RetrofitCache.getInstance().addIgnoreParam 无效 #22
Comments
你没有用拦截器给请求链接参数特别处理的不需要调用这个函数 |
就是在每个接口加了时间戳所以才要忽略这个字段, |
已经修复 ,请更新至1.0.8 |
addIgnoreParam 主要是忽略通过拦截器添加的参数后需要调用的,你看看这个issue: #13 |
意思我在拦截器里面加上这个时间戳就可以忽略这个参数去取缓存吗? |
是的,addIgnoreParam本身不需要调用的,对于有些需求比如说是给每个url添加一个参数等方式,这样实际上是修改了原来的链接,这样RetrofitCache是不能正常使用,所以后来我添加了个addIgnoreParam函数 |
你用最新的库吗?我这边测试没有问题 |
好的,那我这边再测测 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
你好 ,我使用的是retrofitcachelibrx2 RetrofitCache.getInstance().addIgnoreParam缓存无效, 不加这个忽略没问题。请问是什么问题?
The text was updated successfully, but these errors were encountered: