From 24e9253b8775783d003769f63e34b893278a42e1 Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Thu, 14 Jun 2018 13:35:40 +1200 Subject: [PATCH] Mention Last-Modified change --- docs/en/04_Changelogs/4.2.0.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/en/04_Changelogs/4.2.0.md b/docs/en/04_Changelogs/4.2.0.md index b63fea5b1..1b6e5e6df 100644 --- a/docs/en/04_Changelogs/4.2.0.md +++ b/docs/en/04_Changelogs/4.2.0.md @@ -357,6 +357,9 @@ class PageController extends ContentController Note this is different from `Vary: Accept-Encoding`, which is important for compression (e.g. gzip), and usually added by other layers such as Apache's mod_gzip. + * No longer sets `Last-Modified` date in HTTP response headers in `DataObject::__construct()`. + Uses `ETag` calculation based on response body which is more accurate, + and resilient against partial and object caching which can produce stale `Last-Modified` values. * DataObject no longer automatically invokes `HTTP::register_modification_date` with LastModified on construction. User code should instead invoke `HTTPCacheControlMiddleware::singleton()->registerModificationDate()` explicitly.