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
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
..
http Strong ETag validators 2016-03-31 18:15:32 -07:00
journey [ci skip] Replace usage of rake routes with rails routes 2016-02-25 01:00:30 +05:30
middleware Fix deprecation warning for ParamsParser instance 😄 2016-03-30 10:16:07 +05:30
request Revert "Merge pull request #20851 from tomprats/indifferent-sessions" 2016-02-26 04:47:30 +10:30
routing Niceify the dynamic routes deprecation messages 2016-03-03 14:33:30 +01:00
testing extract ActionDispatch::IntegrationTest::Behavior 2016-03-07 11:38:43 -08:00
journey.rb Integrate Journey into Action Dispatch 2012-12-19 22:13:08 +00:00
railtie.rb Don't reference Rails.application from inside a component 2016-03-02 02:14:54 +10:30
routing.rb [skip ci] Reorder paragraphs 2016-03-10 15:01:27 +01:00