Skip to content
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

删除后缀不管用,还是缓存了 #167

Open
qiqizz123 opened this issue Jan 2, 2020 · 2 comments
Open

删除后缀不管用,还是缓存了 #167

qiqizz123 opened this issue Jan 2, 2020 · 2 comments

Comments

@qiqizz123
Copy link

我用removeExtension方法删除ico后缀,发现还是缓存ico。看了下源码,先通过STATIC判断的,而removeExtension改的是statics,STATIC没有改,这是个bug吗?

public boolean canCache(String extension) {

        if (TextUtils.isEmpty(extension)) {
            return false;
        }
        extension = extension.toLowerCase().trim();
        if (STATIC.contains(extension)) {
            return true;
        }
        return statics.contains(extension);

    }
@qiqizz123 qiqizz123 reopened this Jan 2, 2020
@yale8848
Copy link
Owner

yale8848 commented Jan 3, 2020

那你调用removeGlobalExtension看看

@qiqizz123
Copy link
Author

试了一下,要两个方法都调用才行

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants