symfony/symfony — pull request #9919 by alquerci (2014-01-01 01:50:07+00:00)
Title: [WIP] [HttpKernel] Fixed cache behavior when TTL has expired

| Q | A
| ------------- | ---
| Bug fix? | no
| New feature? | no
| BC breaks? | no
| Deprecations? | no
| Tests pass? | no
| License | MIT

- [ ] gather feedback for test when TTL has expired
- [ ] try to fix it if tests are correct by fixing the [default TTL configuration](https://github.com/alquerci/symfony/blob/6d2dcbf3824742bdbf00830d77644e50d733ae77/src/Symfony/Component/HttpKernel/HttpCache/HttpCache.php#L435)

When the cache is stale the `validate` method `forward` the request to the backend. A new response will be created with or without TTL configuration. If the TTL was not set then the default one should be set like in the `fetch` method.