Skip to content

Commit

Permalink
Fix docs for Rack::Static http headers
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasklemm authored and James Tucker committed Jan 4, 2013
1 parent 677a042 commit 3c4bab1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/rack/static.rb
Expand Up @@ -32,8 +32,8 @@ module Rack
#
# use Rack::Static, :root => 'public',
# :header_rules => [
# [rule_1, { header_field_1 => content, header_field_2 => content }],
# [rule_2 => { header_field => content }]
# [rule, {header_field => content, header_field => content}],
# [rule, {header_field => content}]
# ]
#
# Rules for selecting files:
Expand Down Expand Up @@ -69,11 +69,11 @@ module Rack
# :header_rules => [
# # Cache all static files in public caches (e.g. Rack::Cache)
# # as well as in the browser
# [:all, {'Cache-Control' => 'public, max-age=31536000' }],
# [:all, {'Cache-Control' => 'public, max-age=31536000'}],
#
# # Provide web fonts with cross-origin access-control-headers
# # Firefox requires this when serving assets using a Content Delivery Network
# [:fonts, { 'Access-Control-Allow-Origin' => '*' }]
# [:fonts, {'Access-Control-Allow-Origin' => '*'}]
# ]
#
class Static
Expand Down

0 comments on commit 3c4bab1

Please sign in to comment.