mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
c1c9c69040
* Introduce `Response#strong_etag=` and `#weak_etag=` and analogous options for `fresh_when` and `stale?`. `Response#etag=` sets a weak ETag. Strong ETags are desirable when you're serving byte-for-byte identical responses that support Range requests, like PDFs or videos (typically done by reproxying the response from a backend storage service). Also desirable when fronted by some CDNs that support strong ETags only, like Akamai. * No longer strips quotes (`"`) from ETag values before comparing them. Quotes are significant, part of the ETag. A quoted ETag and an unquoted one are not the same entity. * Support `If-None-Match: *`. Rarely useful for GET requests; meant to provide some optimistic concurrency control for PUT requests. |
||
---|---|---|
.. | ||
cache.rb | ||
filter_parameters.rb | ||
filter_redirect.rb | ||
headers.rb | ||
mime_negotiation.rb | ||
mime_type.rb | ||
mime_types.rb | ||
parameter_filter.rb | ||
parameters.rb | ||
rack_cache.rb | ||
request.rb | ||
response.rb | ||
upload.rb | ||
url.rb |