Bug 829616 - HTTP cache serves stale content on B2G when page reloaded

 * Fix https://bugzilla.mozilla.org/show_bug.cgi?id=829616. Sync the patch from master.