mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-01 13:48:37 +02:00
Mention Last-Modified change
This commit is contained in:
parent
513e0891d3
commit
24e9253b87
@ -357,6 +357,9 @@ class PageController extends ContentController
|
|||||||
Note this is different from `Vary: Accept-Encoding`,
|
Note this is different from `Vary: Accept-Encoding`,
|
||||||
which is important for compression (e.g. gzip), and usually added by
|
which is important for compression (e.g. gzip), and usually added by
|
||||||
other layers such as Apache's mod_gzip.
|
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`
|
* DataObject no longer automatically invokes `HTTP::register_modification_date`
|
||||||
with LastModified on construction. User code should instead invoke
|
with LastModified on construction. User code should instead invoke
|
||||||
`HTTPCacheControlMiddleware::singleton()->registerModificationDate()` explicitly.
|
`HTTPCacheControlMiddleware::singleton()->registerModificationDate()` explicitly.
|
||||||
|
Loading…
Reference in New Issue
Block a user