<?xml version="1.0" encoding="utf-8" standalone="yes"?>
<oembed>
  <author_name>tateisu</author_name>
  <author_url>https://blog.hatena.ne.jp/tateisu/</author_url>
  <blog_title>たていすのメモ2</blog_title>
  <blog_url>https://tateisu.hatenablog.com/</blog_url>
  <categories>
    <anon>Android</anon>
    <anon>okhttp</anon>
    <anon>Kotlin</anon>
    <anon>プログラム</anon>
  </categories>
  <description>okhttpのCacheControl.Builder.maxStale()の挙動を勘違いしてた。たとえばこんなコードを書いたとする。 val CACHE_CONTROL = CacheControl.Builder() .maxAge(5, TimeUnit.MINUTES) .maxStale( Integer.MAX_VALUE, TimeUnit.SECONDS) .build() val call = okhttpClient.newCall( Request.Builder() .cacheControl(CACHE_CONTROL) .url(url) )</description>
  <height>190</height>
  <html>&lt;iframe src=&quot;https://hatenablog-parts.com/embed?url=https%3A%2F%2Ftateisu.hatenablog.com%2Fentry%2F2019%2F01%2F18%2F002212&quot; title=&quot;okhttpのCacheControl.Builder.maxStale() - たていすのメモ2&quot; class=&quot;embed-card embed-blogcard&quot; scrolling=&quot;no&quot; frameborder=&quot;0&quot; style=&quot;display: block; width: 100%; height: 190px; max-width: 500px; margin: 10px 0px;&quot;&gt;&lt;/iframe&gt;</html>
  <image_url></image_url>
  <provider_name>Hatena Blog</provider_name>
  <provider_url>https://hatena.blog</provider_url>
  <published>2019-01-18 00:22:12</published>
  <title>okhttpのCacheControl.Builder.maxStale()</title>
  <type>rich</type>
  <url>https://tateisu.hatenablog.com/entry/2019/01/18/002212</url>
  <version>1.0</version>
  <width>100%</width>
</oembed>
