fix typo
This commit is contained in:
parent
596b5d408a
commit
a90d9236b8
13
README.rdoc
13
README.rdoc
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue