GitHub is home to over 20 million developers working together to host and review code, manage projects, and build software together.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
Already on GitHub? Sign in to your account
May I lobby for the ability to set the last_modified
header in send_file in a similar manner to mime_type?
Here's why: I'm developing a hierarchical storage system, and I
sometimes need to extract files from tertiary storage to a
temp file before serving them. For a variety of reasons I can't rely
on the mtime of the restored file having the original disk file's
mtime, but it is in a DB, and I'd like to make the served
resource reflect the original time, not that of the temporary
send_file now takes :last_modified option
closed by 1e55be7
Merge pull request #131 from mattwildig/jp-to-ja
Change 'jp' code to 'ja'
Merge pull request #131 from dtaniwaki/add-required-params
Add required params method
Rename Sinatra::Params to Sinatra::RequiredParams