AngularJS: Replicating Gmail caching behaviour with 10 lines of code | Hacker News Reader