Permalink
Browse files

Enable HTTP caching.

  • Loading branch information...
1 parent 1897dfc commit dfab3fd3d8771ec1b460481a6c566a5509546f9d @loe loe committed Apr 22, 2012
Showing with 2 additions and 0 deletions.
  1. +2 −0 config.ru
View
@@ -29,6 +29,8 @@ if ENV['RACK_ENV'] != 'production'
end
# Other Rack Middleware
+use Rack::ConditionalGet # 304 on refreshes!
+use Rack::ETag, nil, 'public, max-age=600' # ETags and Varnish Caching
use Rack::ShowStatus # Nice looking 404s and other messages
use Rack::ShowExceptions # Nice looking errors

0 comments on commit dfab3fd

Please sign in to comment.