Skip to content

Latest commit

 

History

History
7 lines (4 loc) · 461 Bytes

conditionalGet.md

File metadata and controls

7 lines (4 loc) · 461 Bytes

Conditional GET

The conditionalGet middleware supports conditional GET requests, which validates the "freshness" of a response body. Currently supports:

  • If-Modified-Since. When a response status is 200, and Last-Modified less than or equal to this time, the response body and Content-* headers will be stripped, responding with 304 "Not Modified".

  • If-None_Match. Performs a similar validation, however compares the ETag for equality.