GithubHelp home page GithubHelp logo

Comments (2)

wujichao avatar wujichao commented on August 14, 2024

是uiwebview的缓存。
帖子详情页面的webview缓存的缓存策略是用的SDURLCache(steipete), 为了缓存用户的头像。
NSURLCache的缓存策略之前测试过无法控制,需要再探索。
然后改用SDURLCache,SDURLCache的缓存依然是黑箱,头像成功缓存了,但是同时缓存了帖子。还有一个弊端是会随机crash。
尚不清楚其他人怎么处理这个问题的(要缓存webview中的图片),我猜想的一个方法是重写NSURLCache,自己实现下面俩个方法。

  • (NSCachedURLResponse *)cachedResponseForRequest:(NSURLRequest *)request;
  • (void)storeCachedResponse:(NSCachedURLResponse *)cachedResponse forRequest:(NSURLRequest *)request;

from hipda_ios_client_v3.

wujichao avatar wujichao commented on August 14, 2024

34a05f8

from hipda_ios_client_v3.

Related Issues (20)

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.