Code Monkey home page Code Monkey logo

easilycoder / hybridcache Goto Github PK

View Code? Open in Web Editor NEW
64.0 0.0 16.0 401 KB

a library which can intercept the loading process of webpage resource and cache all the resource files we are interested, just like css files,js files, images files ,html files and so on.So we can share the cache between the web view and our native logic.(这个库可以帮组我们拦截webview加载网页的时候所有的资源请求,并且根据实际的需求策略进行缓存管理。基于此,可以帮助我们实现webview与natvie的逻辑的缓存共存,比如webview与app共用图片加载库fresco的图片缓存)

License: MIT License

Kotlin 12.80% Java 87.20%
hybrid-apps webview cache android

hybridcache's People

Contributors

easilycoder avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

hybridcache's Issues

最后一个问题

哎😔,本来以为你们网易大厂出来的东西不错的。这个需求也正好我需要。但是在我用了之后,发现了特别多的问题。看得出来,这个项目仅仅满足了你们对“图片缓存”的需要,而且并没有其他致命性的问题。但是,当你把这个缓存,拓展到js,css,一大堆问题就来了。。。。虽然已经提了3个issue,但是也没人鸟。

还是你们网易大厂的高冷!

鉴于此,我还是不用你这个问题重重的库了。。。。

CSS 缓存加载顺序的问题

貌似使用了自定义的CssInterceptor缓存CSS文件,在本地加载返回css之后,会出现css的加载顺序错乱。
导致,页面样式那些想要覆盖原本的样式没有成功覆盖。

关于 ImageInterceptor.isIntercept 的一些问题

首先,感谢提供如此牛逼的东西!
谢谢年轻的大佬,知道你是刚毕业的!

MimeTypeMap.getFileExtensionFromUrl(url)

在正常使用中,上述方法貌似不能正确解析。

image

如图,导致缓存失败!

缓存加载速度问题。

因为是从文件系统读取缓存,貌似,整体加载速度,不如之前系统webview自带的缓存速度的加载速度,稍有几秒的延迟。

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.