Build a realtime Instagram clone — Part 4: Going offline with service workers