diff options
author | Michael Koziarski <michael@koziarski.com> | 2007-08-12 22:32:19 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2007-08-12 22:32:19 +0000 |
commit | 55f444e69432aa9840406b3ad313eec39b6bbb87 (patch) | |
tree | 08a34fdcd8e3a3599e1b5b33bf8877e91291dc47 /actionpack/test/controller | |
parent | 303d379dadaf8c5b0b4518173b2689b003c213a8 (diff) | |
download | rails-55f444e69432aa9840406b3ad313eec39b6bbb87.tar.gz rails-55f444e69432aa9840406b3ad313eec39b6bbb87.tar.bz2 rails-55f444e69432aa9840406b3ad313eec39b6bbb87.zip |
Send freshness information when sending Etags. Without this internet explorer will not send conditional gets for a resource, but instead hold on to the responses for the current browser session.
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7309 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/render_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb index c856fcf19b..b6cbe7f924 100644 --- a/actionpack/test/controller/render_test.rb +++ b/actionpack/test/controller/render_test.rb @@ -320,6 +320,7 @@ class RenderTest < Test::Unit::TestCase def test_render_200_should_set_etag get :render_hello_world_from_variable assert_equal etag_for("hello david"), @response.headers['ETag'] + assert_equal "private, max-age=0, must-revalidate", @response.headers['Cache-Control'] end def test_render_against_etag_request_should_304_when_match |