
zhongwuzwandFacebook Github Bot
e98d5a289a
Enhance image freshness check before stored into cache (#23226)
Summary:
Currently, before we store the image to cache, we only respect `Cache-Control`, actually, we also may need to check `Expires`、`Last-Modified`, refer to [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching#Freshness), and [okhttp](https://github.com/square/okhttp/blob/568a91c44a118b2c2ba62d310a331582c567b24a/okhttp/src/main/java/okhttp3/internal/cache/CacheStrategy.java#L268) respect the `MDN`, so in iOS, we can also respect this.
[iOS] [Fixed] - Respect `MDN` cache strategy before cache the image.
After `PR`, if image's response do not contains `Cache-Control`, it would also checks `Expires`、`Last-Modified` refers to [MDN docs](https://developer.mozilla.org/en-US/docs/Web/HTTP/Caching#Freshness).
Pull Request resolved: https://github.com/facebook/react-native/pull/23226
Differential Revision: D13895627
Pulled By: cpojer
fbshipit-source-id: aa377511c31badd752d7887ed6cbcdf6be4b80b3
2019-01-31 03:57:49 -08:00
..
2019-01-24 12:29:49 -08:00
2018-09-11 15:33:07 -07:00
2019-01-31 01:36:21 -08:00
2018-12-03 00:07:02 -08:00
2019-01-23 04:05:56 -08:00
2018-12-03 00:07:02 -08:00
2019-01-16 05:31:55 -08:00
2018-12-11 20:01:00 -08:00
2019-01-14 10:50:36 -08:00
2018-09-11 15:33:07 -07:00
2019-01-30 23:41:40 -08:00
2019-01-28 01:52:14 -08:00
2018-12-03 00:07:02 -08:00
2018-12-03 00:07:02 -08:00
2019-01-23 04:10:13 -08:00
2017-08-09 07:48:09 -07:00
2019-01-30 10:23:58 -08:00
2019-01-31 03:57:49 -08:00
2019-01-28 02:00:18 -08:00
2019-01-01 17:13:15 -08:00
2018-10-19 10:57:24 -07:00
2019-01-24 15:24:59 -08:00
2018-12-06 21:13:58 -08:00
2018-09-21 06:18:39 -07:00
2019-01-28 11:55:32 -08:00
2019-01-17 02:41:59 -08:00
2018-09-28 09:17:17 -07:00
2019-01-28 03:57:42 -08:00
2018-12-03 00:07:02 -08:00
2018-09-11 15:33:07 -07:00
2019-01-22 07:05:22 -08:00
2018-12-03 00:07:02 -08:00
2019-01-23 02:18:10 -08:00
2019-01-30 23:41:40 -08:00
2019-01-16 21:55:02 -08:00
2018-12-03 16:29:53 -08:00
2018-10-31 01:37:26 -07:00
2018-12-03 00:07:02 -08:00
2018-12-03 00:07:02 -08:00
2018-09-11 15:33:07 -07:00
2019-01-08 18:49:37 -08:00
2018-12-18 12:57:38 -08:00
2018-09-11 15:33:07 -07:00
2019-01-03 03:43:26 -08:00
2019-01-04 16:19:43 -08:00
2018-09-27 14:18:31 -07:00
2019-01-10 12:52:02 -08:00
2019-01-28 01:52:14 -08:00
2018-12-03 00:07:02 -08:00
2019-01-01 17:55:29 -08:00
2018-09-11 15:33:07 -07:00
2018-10-29 12:42:10 -07:00
2018-02-27 08:42:14 -08:00
2018-11-26 06:28:24 -08:00
2018-09-11 15:33:07 -07:00
2018-09-11 15:33:07 -07:00