Skip to content

Instantly share code, notes, and snippets.

@rtomayko
Created August 15, 2008 06:43
Show Gist options
  • Save rtomayko/5547 to your computer and use it in GitHub Desktop.
Save rtomayko/5547 to your computer and use it in GitHub Desktop.
require 'rubygems'
require 'sinatra'
get '/' do
response['Last-Modified'] = 'SpongeBobSquarePants'
"If-Modified-Since: #{request.env['HTTP_IF_MODIFIED_SINCE']}"
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment