Conditional Requests

About

HTTP has a concept of conditional requests, where the results, and even the success of a request , can be controlled by comparing the affected resources with a validator1.

Use

They are useful for:

  1. Validating cached content , ensuring that it is only fetched if it differs from the copy that is already available
  2. Ensuring the integrity of a document when resuming a download , or preventing lost updates when uploading or modifying a document on the server

Anki

References


  1. MDN. “conditional requests”. Available at: https://developer.mozilla.org/en-US/docs/Web/HTTP/Guides/Conditional_requests . (Accessed: [2025-05-16 Fri 04:19]). ↩︎

Random Posts