← Back to the chapter · Previous detail
Technical detail · CoAP API Design: Delivery and Security Decisions
Notification timing and proxy cache edge cases
A CoAP notification rule decides when updates are sent, and a proxy cache stores responses for later reuse.
Consider a notification rule that sends when either a change threshold is crossed or an interval elapses. A rapid large change therefore bypasses a claimed minimum interval. For a hard minimum gap, require the elapsed time first, then evaluate change. Define periodic refresh separately if unchanged values also need it.
Consider a proxy rule that reuses a cached response only while its age is below both the client’s allowed age and the response’s freshness lifetime. Preventing that local cache-hit branch does not guarantee a new sensor sample. Check upstream cache policy, source timestamps and behavior when fresh evidence cannot be obtained. A response freshness option is not a request for a new measurement.