CS FundamentalsVery hardProduct-company web interview
What is the difference between the HTTP headers Cache-Control: no-cache and Cache-Control: no-store?
- A. They mean the same thing
- B. no-cache forbids storing; no-store allows storing but requires revalidation
- C. no-cache is for requests only and no-store for responses only
- D. no-cache allows storing the response but requires revalidation with the server before each reuse; no-store forbids storing it at all
Correct answer: D. no-cache allows storing the response but requires revalidation with the server before each reuse; no-store forbids storing it at all
Despite its name, no-cache means 'check with the origin before reusing' (e.g. via ETag). no-store is the directive for sensitive data that must never be written to a cache.
Practise more Software Engineering, Git and Cloud Basics questionsSoftware Engineering, Git and Cloud Basics: notes and key points
More Software Engineering, Git and Cloud Basics questions
- A web app at https://app.example.com sends a PUT request with a JSON body to https://api.example.com. Before the PUT, the browser sends…
- An API uses self-contained JWT access tokens that are valid for 24 hours and are verified only by signature. A user's laptop is stolen and…
- A token-bucket rate limiter holds up to 10 tokens and refills 2 tokens per second; it starts full. A client fires requests as fast as…
- main has A-B-C. feature1 branched from C with commits D-E, and feature2 branched from E with commits F-G. feature1 is abandoned, but…
- A developer edits a tracked file app.py, creates a new file util.py, and runs git commit -a -m "update". What is committed?
- A CI job runs git clone --depth 1 on a large repository. Which statement is correct?