Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Branch: master
Fetching contributors…

Cannot retrieve contributors at this time

53 lines (44 sloc) 2.14 KB

Sample Sinatra application demonstrating HTTP caching headers referenced by the Heroku Dev Center article, "Mobile Device Network Caching in iOS".

Deploy to Heroku

To deploy this application to your own Heroku account, perform the following.

Ensure you have installed the Heroku Toolbelt or all prerequisites included. Then:

$ git clone
Cloning into devcenter-client-caching-sinatra-example...
remote: Counting objects: 7, done.
remote: Compressing objects: 100% (6/6), done.
remote: Total 7 (delta 0), reused 7 (delta 0)
Unpacking objects: 100% (7/7), done.

$ cd devcenter-client-caching-sinatra-example.git

$ heroku create -s cedar
Creating floating-wind-3377... done, stack is cedar |
Git remote heroku added

$ git push heroku master
Counting objects: 7, done.
Delta compression using up to 4 threads.

-----> Heroku receiving push
-----> Ruby/Rack app detected
-----> Installing dependencies using Bundler version 1.2.0.pre
       Running: bundle install --without development:test --path vendor/bundle --binstubs bin/ --deployment
       Fetching gem metadata from
       Installing daemons (1.1.8)
       Installing eventmachine (0.12.10) with native extensions
       Installing json (1.7.3) with native extensions
       Installing rack (1.4.1)
       Installing rack-protection (1.2.0)
       Installing tilt (1.3.3)
       Installing sinatra (1.3.2)
       Installing thin (1.3.1) with native extensions
       Using bundler (1.2.0.pre)
       Your bundle is complete! It was installed into ./vendor/bundle
       Cleaning up the bundler cache.
-----> Discovering process types
       Procfile declares types     -> web
       Default types for Ruby/Rack -> console, rake
-----> Compiled slug size is 3.5MB
-----> Launching... done, v3 deployed to Heroku

Then open using your Heroku app-name.

Jump to Line
Something went wrong with that request. Please try again.