实现缓存:
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
似乎是本页面不能支持缓存
到目前没找到解决办法。