1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_dispatch/http
Jeremy Daer c1c9c69040 Strong ETag validators
* 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.
2016-03-31 18:15:32 -07:00
..
cache.rb Strong ETag validators 2016-03-31 18:15:32 -07:00
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