Skip to content

Commit 79081bb

Browse files
committed
update changelog
1 parent eaaa465 commit 79081bb

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

CHANGELOG.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,25 @@ See also the [GitHub releases page](https://github.com/FriendsOfSymfony/FOSHttpC
66
3.x
77
===
88

9+
3.1.0
10+
-----
11+
12+
### Symfony HttpCache
13+
14+
* Add events `PRE_FORWARD` and `POST_FORWARD` to allow event listeners to alter
15+
the request before and after it is sent to the backend.
16+
* Changed CustomTtlListener to use the `POST_FORWARD` event instead of
17+
`PRE_STORE`. Using `PRE_STORE`, requests that are not considered cacheable by
18+
Symfony were never cached, even when they had a custom TTL header.
19+
* Add flag `fallbackToSmaxage` to `CustomTtlListener` to allow controlling
20+
fallback to `s-maxage` if custom TTL header is not defined on the response.
21+
* Fix: Do not call store if Response object is not longer cacheable after event
22+
listeners. If you use the custom TTL system, this is only a performance
23+
improvement, because the TTL of the response would still be 0. With a custom
24+
listener that changes the response explicitly to not be cached but does not
25+
change `s-maxage`, this bug might have led to caching responses that should not
26+
have been cached.
27+
928
3.0.0
1029
-----
1130

0 commit comments

Comments
 (0)