Java
[EN] Idempotency Keys in …
The third part of our series was about If-Match and how you can use it to prevent lost updates for PUT and PATCH - two clients process the same resource, the server detects the collision based on the ETag and rejects the stale write access. One question remained unanswered: What about POST? When …
[EN] Conditional Writes …
The second part of our series was about caching headers - and in the pro tip about strong vs. weak ETags we briefly teased that strong ETags have a second job: They protect you from lost updates when writing. That’s exactly what today is about.
[EN] HTTP Caching …
In the first part of our series, we looked at QUERY, the first new HTTP method in 15 years. Today we’re talking about something you probably use every day without really understanding what you’re doing with it: caching headers.
![[EN] Idempotency Keys in Spring Boot: Safely prevent duplicate POST requests](/images/http-idempotency-keys-header.jpeg)
![[EN] Conditional Writes in Spring Boot: Prevent Lost Updates with If-Match](/images/http-conditional-writes-header.jpeg)
![[EN] HTTP Caching Headers: More than Cache Control from the tutorial](/images/http-caching-header-header.jpeg)