All jobs / Mobile developer / Networking

Mobile developer interview question · 1–3 years

How do you avoid re-downloading a list that rarely changes, without showing stale data for ever?

The strongest answer

The server sends a validator such as an ETag; the client sends it back and a 304 means reuse what it already has. A max-age says how long it may skip asking at all

Why it works

Right — validation keeps the round trip but drops the payload, and freshness is a server decision you honour.

What a good answer covers

Answers that fall short

Who gets asked this

More Networking questions