Question 1 of 8
- Multiple choice
- Understand
- Easy
8 questions written from How HTTP Caching Works (669 words, 8 passages). Every answer cites a sentence from its passage, checked word for word.
Demo replay: the real pipeline ran on scripted model replies, so it's free and repeatable. Run it with your own key for live generation.
0 correct0 of 8 answered
The pipeline
Every stage that can reject a question says exactly why, and the question goes back with that reason instead of being retried blind.
Planner agent
Picks what each question tests: one passage, a type, a skill and a difficulty. Code validates the blueprint and sends it back with exact fixes.
2 calls · 1 sent back
Writer agents, in parallel
Draft each question from its passage and copy a sentence from it, word for word, as the evidence for the answer.
11 calls
Plain code, no model
Is the quote really in the passage? One key among four options? Does anything give the answer away? A failure goes back with the exact fix.
2 defects caught
Cheap screen, strong second look
A cheap model grades every question on up to five dimensions. A blocker escalates to a strong model. A complaint it cannot quote is discarded.
9 screens · 1 escalation
Only on a confirmed blocker
The writer gets the judge's issue and quoted evidence. The rewrite is checked and judged again before it can ship.
1 question rewritten
8/8
delivered
none dropped
5
first try
passed every check
2
fixed by a retry
with the checker's message
1
rewritten
after a confirmed blocker
1
escalation
of 8 judged
23
model calls
all scripted
Counts come from the run report. Every call was answered by a scripted reply, so there are no tokens, costs or latencies to report. A live run uses claude-opus-5-5 (planner, strong writer, strong judge), claude-sonnet-5-5 (writer) and claude-haiku-5-5 (screen judge).
Step by step
Drafts and verdicts below are the scripted replies this replay ran on. The checks, the escalation and the evidence rule that judged them are the pipeline's own code, re-run when this page was built.
Blueprint 1 sent back by code
Blueprint 2 accepted
8 questions over 7 passages: 4 multiple choice, 2 true or false, 1 fill in the blank, 1 short answer.
Multiple choice · understand · easy · from p02 Where responses are cached
Draft 1 passed every checkwriter agent
Screen judge passed itcheap screen model
Shipped as question 1
Multiple choice · understand · medium · from p03 Freshness
Draft 1 failed a checkwriter agent
The correct option is visibly longer than every distractor, so it can be picked without reading. mcq_key_is_longest
Sent back to the writer: “The correct option is 4.3x as long as the wrong ones (94 characters against 22 on average), so it can be picked without reading the question. Rewrite the three wrong options to the same length and grammatical shape as the right one, each wrong for a real reason. Do not shorten the right one.”
What does the s-maxage directive do?
Quote: “Shared caches also understand s-maxage, which overrides max-age for them only.”
Draft 2 passed every checkwriter agent
Screen judge passed itcheap screen model
Shipped as question 2
True or false · understand · medium · from p05 no-cache is not no-store
Draft 1 passed every checkwriter agent
Screen judge passed itcheap screen model
Shipped as question 3
Multiple choice · recall · easy · from p04 Validation and conditional requests
Draft 1 failed a checkwriter agent
The cited source quote is not copied word for word from the passage the item is answered from. quote_not_in_passage
Sent back to the writer: “The sourceQuote is not in passage p04 word for word. Copy one or two exact sentences from that passage that prove the answer; do not paraphrase, shorten words or join sentences from different places.”
A cache revalidates a stale response and the resource has not changed. What does the server send back?
Quote: “If nothing changed, the server answers 304 Not Modified without a body.”, not found in the passage
Draft 2 passed every checkwriter agent
Screen judge passed itcheap screen model
Shipped as question 4
Fill in the blank · recall · easy · from p04 Validation and conditional requests
Draft 1 passed every checkwriter agent
Screen judge passed itcheap screen model
Shipped as question 5
Multiple choice · apply · hard · from p06 Serving stale content on purpose
Draft 1 passed every checkwriter agent
Screen judge flagged exactly one defensible answer, so it escalatedcheap screen model
Exactly one defensible answer0.40pass mark 0.90, blocking
The second option is also correct: the cache does answer immediately with the copy it has stored, so two options are defensible.
Strong judge confirmed a blocker: exactly one defensible answerstrong model
Exactly one defensible answer0.30pass mark 0.90, blocking
Two options describe what happens: serving the stored copy immediately is true under stale-while-revalidate, so the second option cannot be marked wrong.
Quoted from the draft: “It answers immediately with the copy it already has stored”
The issue and its quote went back to the writer as reviewer notes.
A response is sent with max-age=60, stale-while-revalidate=300. What happens when it is requested three minutes later?
Quote: “For example, max-age=60, stale-while-revalidate=300 keeps a response fresh for one minute and allows it to be served stale for up to five more minutes while a refresh happens.”
Rewrite (draft 2) passed every checkwriter agent
Screen judge passed the rewritecheap screen model
Shipped as question 6
True or false · understand · medium · from p07 Versioned URLs and immutable files
Draft 1 passed every checkwriter agent
Screen judge passed it and dropped an unquoted complaintcheap screen model
Clear and self-contained: complaint discarded
The judge gave clarity 0.70 and said: “The statement could be read as saying every hashed file must be cached for a year.”
Its quote, “can be cached for a year, because every change”, is in neither the question nor the passage. The question reads: “A file named with a hash of its content can be cached for a year, because any change to the file produces a new URL.”
A complaint without a verbatim quote is dropped and the score lifted to the pass mark (0.80), so every issue the judge reports can be checked by a person.
Shipped as question 7
Short answer · analyze · hard · from p08 Responses that vary
Draft 1 passed every checkwriter agent
Screen judge passed itcheap screen model
Shipped as question 8
Source document
669 words · 8 passages · examples/sources/http-caching.md
Ingest splits the document into numbered passages. Each question is written from one passage and must quote it word for word. Underlined sentences are those quotes; the number after each opens its question.
Every time a browser loads a page, it may ask servers for dozens of files: HTML, stylesheets, scripts, images and fonts. Most of these files do not change between visits. HTTP caching lets a client keep a copy of a response and reuse it later, so the next request is answered from the copy instead of the network. A cache hit saves bandwidth, makes pages load faster, and takes load off the origin server.
There are two kinds of cache. A private cache belongs to one user; the browser's own cache is the usual example. A shared cache sits between many users and the origin server, such as a CDN or a proxy run by a company. Because a shared cache serves the same stored response to many people, a response that contains personal data must never be stored there. The Cache-Control: private directive tells shared caches not to store a response while still allowing the browser to keep it.
A stored response is fresh for a limited time, called its freshness lifetime. The server sets this with Cache-Control: max-age=N, where N is a number of seconds. A response sent with max-age=3600 can be reused for one hour without asking the server again. Shared caches also understand s-maxage, which overrides max-age for them only. When a response carries no freshness information at all, caches may estimate a lifetime from the Last-Modified header, a practice called heuristic caching. Once the lifetime runs out, the response becomes stale.
A stale response is not necessarily useless. Instead of downloading the file again, the cache can ask the server whether its copy is still valid. This is called revalidation, and it uses conditional requests. If the stored response included an ETag, an opaque identifier for one version of the resource, the cache sends it back in an If-None-Match header. If the response included Last-Modified, the cache can send that date in If-Modified-Since. When nothing has changed, the server replies with 304 Not Modified and no body, and the cache marks its copy fresh again. Only when the resource has changed does the server send a full 200 OK response with the new content.
Two directives are often confused. no-cache does not forbid storing a response; it means the cache must revalidate with the server before every reuse. no-store is the strict one: it tells every cache not to keep the response at all. Sensitive responses, such as a bank statement, should use no-store, while pages that must always be current but are expensive to send in full can use no-cache together with an ETag, so most checks end in a small 304.
Sometimes a slightly old response is better than a slow one. The stale-while-revalidate directive lets a cache serve a stale response immediately while it revalidates in the background, so the next visitor gets the updated copy. For example, max-age=60, stale-while-revalidate=300 keeps a response fresh for one minute and allows it to be served stale for up to five more minutes while a refresh happens.
Long freshness lifetimes raise a problem: how do users get a new version of a file that their cache considers fresh for a year? The common answer is cache busting. Build tools put a hash of the file's content into its name, such as app.3f9a2c.js. When the file changes, its name changes, so the HTML points to a URL the cache has never seen. Files named this way can safely be sent with max-age=31536000, immutable; the immutable directive tells the browser not to revalidate the file even when the user reloads the page.
A server can return different content for the same URL, for example compressed or uncompressed, or in different languages. The Vary header lists the request headers that influenced the response. With Vary: Accept-Encoding, a cache stores separate copies for clients that accept gzip and those that do not. Listing too many headers in Vary fragments the cache and lowers the hit rate, so it should name only the headers that actually change the response.