metro/react-packager
Amjad Masad 0405c82798 [react-packager] Cache based on options, not url
Summary:
@public

We cached based on url, which wasn't unique becuase some options would be defaulted. This was obvious when starting the server via fbrnios which tries to warmup the bundle.
And then when the device woke up it will send a request (that is identical in reality) but would miss the cache.

This changes the cache key into a JSON stringification of the options.

Test Plan:
* ./runJestTests.sh
* ./fbrnios.sh run
2015-06-19 15:14:31 -08:00
..
__mocks__ [react-packager] Switch from Q to Bluebird as promises library 2015-03-31 21:24:13 -08:00
example_project [ReactNative] Expanded license on js packager files 2015-03-23 11:28:51 -08:00
src [react-packager] Cache based on options, not url 2015-06-19 15:14:31 -08:00
.npmignore [react-packager][streamline oss] Move open sourced JS source to react-native-github 2015-02-19 21:25:11 -08:00
index.js [react-packager] Introduce buildPackage API 2015-05-22 17:28:27 -08:00