1.請求
cache dispatcher ----> network dispatcher
1)如果 http請求的頭信息中 的cache-control max-age字段 未過期則使用 cache ttl(time to live)存活時間2)如果 max-age 過期 則先顯示緩存再發network dispatcher 發netwokr請求 返回304/200 把緩存寫入硬盤 返回結果
2. 緩存
二級緩存
1)DiskCache
2)LruImageCache
3.重試
DefaultRetryPolicy DEFAULT_MAX_RETRIES
4.超時
DefaultRetryPolicy DEFAULT_TIMEOUT_MS
1)請求超時
2)接收數據超時
5 日誌
VolleyLog