Peter Salanki and Facebook Github Bot
52d8851fc8
Cache policy control for image source
...
Summary:
In the context of an app an image exists in three resolutions on the server: `thumb` (30px) `feed` (300px) `full` (900px). When looking at an individual item a user can come either from the feed, via a permalink or from other parts of the app. This allows a situation where the `feed` image might or might not already be loaded somewhere in the app. In the detail view I want to render `thumb` with a blur (to quickly display something), then the `feed` image if it exists to have something decent to display until `full` loads. However it is quite a waste to load the `feed` image if it isn't already in cache, and will slow down the time until `full` is loaded. It is possible to track the navigation from feed->detail and that the `feed` image has actually completed loading by the feed component however as component hierarchies grow this turns into quite a lot of prop passing and bad separation of concerns.
NSURLRequests accepts a [Cache Policy](https://developer.apple.com/reference/fo
Closes https://github.com/facebook/react-native/pull/10844
Differential Revision: D4425959
Pulled By: lacker
fbshipit-source-id: 679835439c761a2fc894f56eb6d744c036cf0b49
2017-01-17 17:13:31 -08:00
..
2016-10-16 11:13:40 -07:00
2016-10-16 04:13:42 -07:00
2016-11-22 21:13:52 -08:00
2016-07-12 05:59:13 -07:00
2016-07-26 01:13:31 -07:00
2016-10-16 04:13:42 -07:00
2016-10-16 04:13:42 -07:00
2016-08-02 17:13:30 -07:00
2016-10-16 04:13:42 -07:00
2016-08-09 06:13:48 -07:00
2016-10-16 04:13:42 -07:00
2016-07-12 05:59:13 -07:00
2016-10-16 04:13:42 -07:00
2016-07-26 01:13:31 -07:00
2016-10-16 04:13:42 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-10-14 19:43:40 -07:00
2016-10-16 04:13:42 -07:00
2016-07-18 23:28:25 -07:00
2016-07-26 01:13:31 -07:00
2016-10-16 11:13:40 -07:00
2017-01-02 11:28:25 -08:00
2016-10-16 04:13:42 -07:00
2016-10-16 04:13:42 -07:00
2016-07-12 05:59:13 -07:00
2016-10-16 04:13:42 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-11-07 10:43:44 -08:00
2016-11-22 21:13:52 -08:00
2016-10-16 11:13:40 -07:00
2017-01-17 17:13:31 -08:00
2016-07-26 01:13:31 -07:00
2016-10-16 04:13:42 -07:00
2016-10-16 04:13:42 -07:00
2016-07-26 01:13:31 -07:00
2016-07-26 01:13:31 -07:00
2016-07-18 10:30:53 -07:00
2016-07-12 05:59:13 -07:00
2016-10-16 04:13:42 -07:00
2016-12-01 08:58:34 -08:00
2016-10-16 06:43:46 -07:00
2016-10-28 05:43:35 -07:00
2016-11-01 03:58:53 -07:00
2016-07-26 01:13:31 -07:00
2016-11-22 21:13:52 -08:00
2016-10-16 04:13:42 -07:00
2016-09-06 03:59:01 -07:00
2016-10-16 11:13:40 -07:00
2016-11-24 22:43:28 -08:00
2016-10-16 11:13:40 -07:00
2016-10-16 11:13:40 -07:00
2016-07-26 01:13:31 -07:00
2016-07-26 01:13:31 -07:00
2016-07-12 05:59:13 -07:00
2016-10-16 04:13:42 -07:00
2016-10-16 04:13:42 -07:00
2016-07-26 01:13:31 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-10-12 08:59:05 -07:00
2016-07-26 01:13:31 -07:00
2016-07-26 01:13:31 -07:00
2016-10-16 04:13:42 -07:00
2016-07-12 05:59:13 -07:00
2016-07-25 03:43:29 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-10-16 04:13:42 -07:00
2016-10-16 04:13:42 -07:00
2016-11-05 17:13:29 -07:00
2016-09-14 02:58:40 -07:00
2016-10-16 04:13:42 -07:00
2016-11-29 12:28:55 -08:00
2016-12-02 12:58:36 -08:00
2016-12-19 06:28:40 -08:00
2016-10-14 08:59:37 -07:00
2016-10-18 08:13:41 -07:00
2016-09-16 00:43:30 -07:00
2016-10-16 11:13:40 -07:00
2016-07-26 01:13:31 -07:00
2016-11-22 21:13:52 -08:00
2016-10-25 00:28:37 -07:00
2016-10-16 04:13:42 -07:00
2016-10-16 04:13:42 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00
2016-11-22 21:13:52 -08:00
2016-10-16 04:13:42 -07:00
2016-07-26 01:13:31 -07:00
2016-07-26 01:13:31 -07:00
2016-10-16 11:13:40 -07:00
2016-12-19 06:28:40 -08:00
2016-10-10 17:28:39 -07:00
2017-01-14 18:58:26 -08:00
2016-07-12 05:59:13 -07:00
2016-12-07 21:43:35 -08:00
2016-09-06 19:58:35 -07:00
2016-11-14 20:45:17 -08:00
2016-07-12 05:59:13 -07:00
2016-07-26 01:13:31 -07:00
2016-10-16 11:13:40 -07:00
2016-08-25 18:28:38 -07:00
2016-07-12 05:59:13 -07:00
2016-08-16 04:58:30 -07:00
2016-11-03 08:13:37 -07:00
2016-11-07 10:43:44 -08:00
2016-11-07 10:43:44 -08:00
2017-01-06 20:29:02 -08:00
2017-01-14 18:58:26 -08:00
2016-07-13 04:58:37 -07:00
2017-01-14 18:58:26 -08:00
2016-09-06 04:28:38 -07:00
2017-01-14 18:58:26 -08:00
2016-07-12 05:59:13 -07:00
2016-07-12 05:59:13 -07:00