Skip to content

Instantly share code, notes, and snippets.

View nutrun's full-sized avatar

George Malamidis nutrun

View GitHub Profile
@nutrun
nutrun / cache_headers.rb
Created May 18, 2009 12:23
Middleware for configuring HTTP cache policy headers in Rack based web applications.
# Cache Headers
# Middleware for configuring HTTP cache policy headers in Rack based web applications.
# Apply cache headers to HTTP responses corresponding to requests that match defined
# URI patterns.
#
# Example usage:
#
# use Rack::CacheHeaders
#
# Rack::CacheHeaders.configure do |cache|