```ruby
#require 'pp'
require 'eee.rb'
require 'rubygems'
require 'sinatra'
require 'rack/cache'

use Rack::Cache,
  :verbose     => true,
  :metastore   => 'file:/var/cache/rack/meta',
  :entitystore => 'file:/var/cache/rack/body'

root_dir = File.dirname(__FILE__)

set :environment, :development
set :root,        root_dir
set :app_root,    root_dir
set :app_file,    File.join(root_dir, 'eee.rb')
disable :run

run Sinatra::Application
```

Use Rack::ThumbNailer in the site's rackup
user
```ruby
#require 'pp'
require 'eee.rb'
require 'rubygems'
require 'sinatra'
require 'rack/cache'
require 'image_science'

###
# Cache

use Rack::Cache,
  :verbose     => true,
  :metastore   => 'file:/var/cache/rack/meta',
  :entitystore => 'file:/var/cache/rack/body'

###
# Thumbnail

require 'rack/thumbnailer'
use Rack::ThumbNailer,
  :cache_dir => '/tmp/rack/thumbnails'

###
# Sinatra App

root_dir = File.dirname(__FILE__)

set :environment, :development
set :root,        root_dir
set :app_root,    root_dir
set :app_file,    File.join(root_dir, 'eee.rb')
disable :run

run Sinatra::Application
```
assistant