Cache then Network

Objective: To display cached content while content is fetched from the network.

Once the service worker is installed, it will cache async requests for tweet data. Refresh the page and the cached results will render immediately on page load, eventually updating when and if the network response retrieves new results.