Giter VIP home page Giter VIP logo

Comments (20)

songwentong avatar songwentong commented on May 29, 2024

这个问题你多测试一下,确定是不是这个情况,我这里也去验证一下你说的问题

from wtrequestcenter.

songwentong avatar songwentong commented on May 29, 2024

�Test方法你试一下,如果成功可以先用那个方法

from wtrequestcenter.

dadpp avatar dadpp commented on May 29, 2024

当使用这个webView缓存框架的时候 https://github.com/rnapier/RNCachingURLProtocol testPostWithURL WTRequestCenterCachePolicyNormal 这个请求会出现 如果A控制器push一个控制器B,B里面有收藏按钮是个post请求,如果点一下收藏,立马点返回到A控制器,那么是收藏失败,请求没有结束已经不请求了,试了ASI,ASI就算B直接退到A 那么还是会执行完这个请求的这个问题 如果操作比较快 那么post是无效

from wtrequestcenter.

dadpp avatar dadpp commented on May 29, 2024

testGetWithURL WTRequestCenterCachePolicyNormal正常 WTRequestCenterCachePolicyCacheAndRefresh容易奔溃 test正常识别我的get post CacheAndRefresh容易奔溃修复一下,我继续测试

from wtrequestcenter.

songwentong avatar songwentong commented on May 29, 2024

POST好像不能缓存,我考虑要不要废弃

from wtrequestcenter.

dadpp avatar dadpp commented on May 29, 2024

下午也测试了 当使用这个webView缓存框架的时候 https://github.com/rnapier/RNCachingURLProtocol 的时候,无论 get post 没有缓存和有缓存的情况下 post 都是失败, ASI配合这个webView缓存框架 已测试通过,其他没测试~post保留一下给需要的人吧,还有那个状态栏的菊花没有加上,不过这个test 好像做的比较好一点,我等下试试能不能自己加

from wtrequestcenter.

dadpp avatar dadpp commented on May 29, 2024

hi 已经排查出来是WTRequestCenterCachePolicyCacheAndRefresh 这个缓存的问题,正式版的get 和 post 用缓存或者不用缓存 WTRequestCenterCachePolicyCacheAndRefresh 和 WTRequestCenterCachePolicyNormal这个都有问题,post有问题,测试版的test 用WTRequestCenterCachePolicyCacheAndRefresh这个的时候会奔溃,用没有缓存的策略一切正常,可以正常post,get 其他没详细测试

from wtrequestcenter.

songwentong avatar songwentong commented on May 29, 2024

谢谢你辛苦测试

from wtrequestcenter.

dadpp avatar dadpp commented on May 29, 2024

RNCachingURLProtocol有webView缓存,post失败,正式和test版本的都试了

from wtrequestcenter.

songwentong avatar songwentong commented on May 29, 2024

我靠,也许有冲突吧

from wtrequestcenter.

dadpp avatar dadpp commented on May 29, 2024

猜测应该是缓存的问题,希望可以修复哦~ASI和他不会冲突

from wtrequestcenter.

songwentong avatar songwentong commented on May 29, 2024

囧,我的是和AFN比较相似,你还是拿AFN来测试吧

from wtrequestcenter.

dadpp avatar dadpp commented on May 29, 2024

hi,AFN框架如果配合https://github.com/rnapier/RNCachingURLProtocol 这个框架是用于webView缓存 也支持 游戏的使用,那么AFN的POST 请求会失败,,普通状态下没问题,我等下提交给AFN作者,看会不会修复,[[AFNetworkActivityIndicatorManager sharedManager]setEnabled:YES]; 刚刚看了一下AFN,一句话可以打开网络指示器

from wtrequestcenter.

dadpp avatar dadpp commented on May 29, 2024

下午录制了个视频给你,发你邮箱了,包含了 AFN ASI 还有你的框架,post 在缓存下是有问题的

from wtrequestcenter.

songwentong avatar songwentong commented on May 29, 2024

谢谢你,你的测试很有用

from wtrequestcenter.

dadpp avatar dadpp commented on May 29, 2024

昨天晚上你提交的那个版本 还是存在原来的问题的,那个webView缓冲框架有个bug,我已经修复~

from wtrequestcenter.

songwentong avatar songwentong commented on May 29, 2024

厉害

from wtrequestcenter.

dadpp avatar dadpp commented on May 29, 2024

WTRequestCenterCachePolicyCacheAndRefresh 依然有问题,求修复~~

from wtrequestcenter.

songwentong avatar songwentong commented on May 29, 2024

如果是POST别用缓存

from wtrequestcenter.

dadpp avatar dadpp commented on May 29, 2024

post 我不用缓存的,我用get缓存的,post就会失效,AFN已经测试过,没问题

from wtrequestcenter.

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.