The interview problem
A customer repeatedly downloads an old report after regeneration. Design a cache-validation investigation.
Original practice, not a reported company interview. Scenarios and numbers are illustrative. Interview date: not applicable. Sources retrieved October 1, 2026.
1. Scope and worked approach
Trace cache keys, validators and response headers across browser, proxy and origin. Use immutable versioned artifact URLs where practical; otherwise ensure the validator changes with the representation. Authorize each request independently of whether its content can be reused.
2. Trace the design or derivation
Report version → cache key and validator → conditional request → correct bytes → digest reconciliation
Keep a reproducible request sequence in the handover, including headers but excluding credentials. Decide whether links mean latest report or a fixed version; these are different user promises. A download audit should record which version the customer actually received.
3. Calculate the example
If report version 2 is served with version 1’s ETag, a conditional request can receive a not-modified response and reuse stale bytes. The successful HTTP exchange does not prove the report is current.
4. Failure cases and trade-offs
A timestamp with coarse resolution may miss rapid updates. Tenant-insensitive cache keys can expose data. Disabling every cache can hide the bug while causing avoidable load.
5. Validation, follow-ups and self-review
Acceptance: regenerate twice, test conditional requests and compare content digests. Follow-up: how do signed URL expiry and caching interact? Self-review: connect resource version, validator and authorization.
Sources and related practice
Technical reference: developer.mozilla.org — Entity tags and conditional validation.
Source publication/update: Not established. Retrieved October 1, 2026. The workflow, calculations and review exercises are original; this reference is not evidence that a company asked this question.
Continue with Resume downloads without mixing object versions; Invalidate mutable content across edge caches.
Continue your preparation
Choose a connected learning path or browse more FDE interviews questions. Read our editorial method and attribution policy.