aboutsummaryrefslogtreecommitdiffstats
path: root/guides/source
diff options
context:
space:
mode:
authorप्रथमेश Sonpatki <csonpatki@gmail.com>2016-02-24 23:17:18 +0530
committerप्रथमेश Sonpatki <csonpatki@gmail.com>2016-02-24 23:17:18 +0530
commit3254dd0ffb735e3ddf428692ba6bb4a3251dc537 (patch)
tree487ee39eee48bec1a3a682f2c8d1d4a7c61b0ff6 /guides/source
parentedbab4e4f558b1593d55b65022cfe7f7d34d49cd (diff)
parent861b98def855beeecb459050a04edcbccbbb26f9 (diff)
downloadrails-3254dd0ffb735e3ddf428692ba6bb4a3251dc537.tar.gz
rails-3254dd0ffb735e3ddf428692ba6bb4a3251dc537.tar.bz2
rails-3254dd0ffb735e3ddf428692ba6bb4a3251dc537.zip
Merge pull request #23861 from chashmeetsingh/patch-1
Updated file documentation [ci skip]
Diffstat (limited to 'guides/source')
-rw-r--r--guides/source/caching_with_rails.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/guides/source/caching_with_rails.md b/guides/source/caching_with_rails.md
index 2df478b5aa..f26019c72e 100644
--- a/guides/source/caching_with_rails.md
+++ b/guides/source/caching_with_rails.md
@@ -523,7 +523,7 @@ end
### A note on weak ETags
-Etags generated by Rails are weak by default. Weak etags allow symantically equivalent responses to have the same etags, even if their bodies do not match exactly. This is useful when we don't want the page regenerated for minor changes in response body. If you absolutely need to generate a strong etag, it can be assigned to the header directly.
+Etags generated by Rails are weak by default. Weak etags allow symantically equivalent responses to have the same etags, even if their bodies do not match exactly. This is useful when we don't want the page to be regenerated for minor changes in response body. If you absolutely need to generate a strong etag, it can be assigned to the header directly.
```ruby
response.add_header "ETag", Digest::MD5.hexdigest(response.body)