This commit is contained in:
Konstantin Haase 2011-09-17 15:15:19 -07:00
parent 596b5d408a
commit a90d9236b8
1 changed files with 6 additions and 7 deletions

View File

@ -1018,13 +1018,12 @@ try {rack-cache}[http://rtomayko.github.com/rack-cache/]:
Use the <tt>:static_cache_control</tt> setting (see below) to add
<tt>Cache-Control</tt> header info to static files.
According to RFC 2616 your application should behave differently if the
If-Matches of If-None-Matches header is set to <tt>*</tt> depending on whether
the resource requested is already in existence. Sinatra assumes resources for
safe (like get) and idempotent (like put) requests are already in existence,
whereas other resources (for instance for post requests), are treated as new
resources. You can change this behavior by passing in a <tt>:new_resource</tt>
option:
According to RFC 2616 your application should behave differently if the If-Match
of If-None-Match header is set to <tt>*</tt> depending on whether the resource
requested is already in existence. Sinatra assumes resources for safe (like get)
and idempotent (like put) requests are already in existence, whereas other
resources (for instance for post requests), are treated as new resources. You
can change this behavior by passing in a <tt>:new_resource</tt> option:
get '/create' do
etag '', :new_resource => true