honestbleeps/Reddit-Enhancement-Suite — pull request #1912 by erikdesjardins (2014-12-27 05:01:59+00:00)
Title: Replace repeated code with RESUtils.getCacheable

Not sure about `getCacheable` or `maxAge`. (suggestions for better names?)

The idea behind splitting the callback into `callback` and `handleData` is to save a tiny bit on storage space (we don't have to store the whole response), and for a tiny bit of performance when using the cache (we don't have to parse it again).