diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2016-01-20 14:27:52 -0800 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2016-01-20 14:27:52 -0800 |
commit | 24e39ffb53bc3daa47a0aee8c37734d8ae39b824 (patch) | |
tree | 64c735bee3ede51ab398d673a78ae66177c69027 /actionpack/lib/action_dispatch/http/cache.rb | |
parent | 3bc6a6c123985eae2c902eb66bf396ed6f5fb27c (diff) | |
parent | e362c31b342927361f3e81f36d12e245bca624c2 (diff) | |
download | rails-24e39ffb53bc3daa47a0aee8c37734d8ae39b824.tar.gz rails-24e39ffb53bc3daa47a0aee8c37734d8ae39b824.tar.bz2 rails-24e39ffb53bc3daa47a0aee8c37734d8ae39b824.zip |
Merge pull request #17573 from zerothabhishek/master
Response etags to always be weak: Prefixed 'W/' to value returned by Act...
Diffstat (limited to 'actionpack/lib/action_dispatch/http/cache.rb')
-rw-r--r-- | actionpack/lib/action_dispatch/http/cache.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/actionpack/lib/action_dispatch/http/cache.rb b/actionpack/lib/action_dispatch/http/cache.rb index 842dfa5827..0f7898a3f8 100644 --- a/actionpack/lib/action_dispatch/http/cache.rb +++ b/actionpack/lib/action_dispatch/http/cache.rb @@ -82,7 +82,7 @@ module ActionDispatch def etag=(etag) key = ActiveSupport::Cache.expand_cache_key(etag) - super %("#{Digest::MD5.hexdigest(key)}") + super %(W/"#{Digest::MD5.hexdigest(key)}") end def etag?; etag; end |