mirror of
https://github.com/sinatra/sinatra
synced 2023-03-27 23:18:01 -04:00
9a5d69a87f
Adds support for RFC 2616 conditional requests based on the resources last modification time. If the request includes an If-Modified-Since header and the file's last modification time matches the value exactly, a "304 Not Modified" response is sent (with an empty response body) instead of the default 200 response with entire response body. The meat of the implementation is in Streaming#send_file_headers! so Static and anything else that results in a call to send_file_headers! gets automatic if-modified-since support. |
||
---|---|---|
.. | ||
sinatra/test | ||
sinatra.rb |