8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bcb1d8f commit 78c4a0cCopy full SHA for 78c4a0c
src/Symfony/Component/HttpKernel/Tests/HttpCache/HttpCacheTest.php
@@ -1264,6 +1264,15 @@ public function testEsiCacheRemoveValidationHeadersIfEmbeddedResponses()
1264
$this->assertNull($this->response->getETag());
1265
$this->assertNull($this->response->getLastModified());
1266
}
1267
+
1268
+ public function testDoesNotReturnCachedVersionFromDifferentRequestMethod()
1269
+ {
1270
+ $this->setNextResponse(200, array('Cache-Control' => 'public, s-maxage=60'));
1271
+ $this->request('GET', '/');
1272
+ $this->assertHttpKernelIsCalled();
1273
+ $this->request('OPTIONS', '/');
1274
+ $this->assertHttpKernelIsCalled(); //fails as it returns the cached response from above
1275
+ }
1276
1277
1278
class TestKernel implements HttpKernelInterface
0 commit comments