Skip to content

Instantly share code, notes, and snippets.

@md5
Last active August 29, 2015 14:13
Show Gist options
  • Save md5/f83bc66b48981d6db7a0 to your computer and use it in GitHub Desktop.
Save md5/f83bc66b48981d6db7a0 to your computer and use it in GitHub Desktop.
Cache-Control test
#!/usr/bin/env ruby
require 'sinatra'
set bind: '0.0.0.0'
get '/' do
response['Cache-Control'] = 'public'
'Hello'
end
FROM ruby
RUN mkdir /app
RUN gem install sinatra
WORKDIR /app
ADD app.rb /app/
CMD ["ruby", "app.rb"]
EXPOSE 4567
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment