Retrofit缓存数据遇到的问题

来源:互联网 发布:python exec in 编辑:程序博客网 时间:2024/05/10 20:58

实现缓存:

    http://www.jianshu.com/p/3a8d910cce38
  • 出现问题

    有一个接口数据无法缓存 断点后显示信息为(Protocol.HTTP_1_1).code(504).message("Unsatisfiable Request (only-if-cached)").body(EMPTY_BODY).build();                    }查看okhttp源码解析http://blog.csdn.net/chenzujie/article/details/47093723

之后当我把缓存的数据导入电脑后发现
这里写图片描述

不能缓存的数据 Header 中 Cache-Control store, no-cache, must-revalidate
似乎是本页面不能支持缓存
到目前没找到解决办法。

0 0