diff options
author | David Rothstein <drothstein@gmail.com> | 2015-03-29 17:24:26 -0400 |
---|---|---|
committer | David Rothstein <drothstein@gmail.com> | 2015-03-29 17:24:26 -0400 |
commit | f7cda605f66446c5661a99cfdb343ebb32dd0441 (patch) | |
tree | c925f7dcace819cb84b6562a7e0549c21724c6c9 /modules/simpletest | |
parent | 5b781afa6642536e449ce2595afffdb98f9e5d18 (diff) | |
download | brdo-f7cda605f66446c5661a99cfdb343ebb32dd0441.tar.gz brdo-f7cda605f66446c5661a99cfdb343ebb32dd0441.tar.bz2 |
Issue #2381839 by klausi, Damien Tournoud: Changed date format for Last-Modified header breaks caching for certain Varnish/Nginx configurations.
Diffstat (limited to 'modules/simpletest')
-rw-r--r-- | modules/simpletest/tests/bootstrap.test | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/modules/simpletest/tests/bootstrap.test b/modules/simpletest/tests/bootstrap.test index 14523f28c..3489062f1 100644 --- a/modules/simpletest/tests/bootstrap.test +++ b/modules/simpletest/tests/bootstrap.test @@ -153,6 +153,8 @@ class BootstrapPageCacheTestCase extends DrupalWebTestCase { $this->drupalGet('', array(), array('If-Modified-Since: ' . $last_modified, 'If-None-Match: ' . $etag)); $this->assertResponse(200, 'Conditional request returned 200 OK for authenticated user.'); $this->assertFalse($this->drupalGetHeader('X-Drupal-Cache'), 'Absense of Page was not cached.'); + $this->assertFalse($this->drupalGetHeader('ETag'), 'ETag HTTP headers are not present for logged in users.'); + $this->assertFalse($this->drupalGetHeader('Last-Modified'), 'Last-Modified HTTP headers are not present for logged in users.'); } /** |