HTTP caching with ETag and 304

RFC 9111 Cache-Control and conditional revalidation verified by ADP-028.

Cache directives by sensitivity

Match CDN and browser storage rules to tenant isolation.

Resource categoryCache-Control valueConditionalsRule
Public product catalogpublic, max-age=60, stale-while-revalidate=300If-None-Match -> 304ADP-028
Private tenant resourceprivate, max-age=0, must-revalidateETag + If-None-MatchADP-028
Credentials or secretsno-storeDisabled at edge and clientADP-028
Concurrent writes (PATCH)Resource version ETagIf-Match -> 412ADP-020

Conditional GET handshake

GET /v1/orders/ord_01J9Z4K HTTP/1.1
If-None-Match: "v3-8a9d2f1c"

HTTP/1.1 304 Not Modified
ETag: "v3-8a9d2f1c"
Cache-Control: private, max-age=0, must-revalidate

Automated GET header verification

api_validator.py checks every GET 200 operation for Cache-Control or ETag headers via ADP-028.