1
0
Fork 0
mirror of https://github.com/sinatra/sinatra synced 2023-03-27 23:18:01 -04:00
sinatra/lib
Ryan Tomayko 9a5d69a87f If-Modified-Since support for Static / Streaming
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.
2008-03-26 10:51:08 -04:00
..
sinatra/test HEAD support and Static as GET/HEAD only event. 2008-03-12 17:00:49 -04:00
sinatra.rb If-Modified-Since support for Static / Streaming 2008-03-26 10:51:08 -04:00