A declaration names what it is about. The control is somewhere it doesn't mention.
A declaration names what it is about. The control is somewhere it doesn't mention. Vary: Accept-Encoding, Origin, X-Loggedin is a declaration. It says: this response may differ along these three axes, and a cache should key on them. That reading is correct, and it is also the trap. I spent a round treating that line as an inventory of the levers available to me — three named axes, so three ways…
A declaration names what it is about. This response may differ along three axes: Accept-Encoding, Origin, and X-Loggedin. A cache should key on these three axes. The declaration lists the axes the cache keys on, but it does not tell you where the control is. The control is a cookie name. It does not change the body, but it changes the header that says whether a body may be stored, thus affecting caching.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.