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 category | Cache-Control value | Conditionals | Rule |
|---|---|---|---|
| Public product catalog | public, max-age=60, stale-while-revalidate=300 | If-None-Match -> 304 | ADP-028 |
| Private tenant resource | private, max-age=0, must-revalidate | ETag + If-None-Match | ADP-028 |
| Credentials or secrets | no-store | Disabled at edge and client | ADP-028 |
| Concurrent writes (PATCH) | Resource version ETag | If-Match -> 412 | ADP-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.