ladybird/Libraries/LibHTTP/Cache
Timothy Flynn cb4da2c6c2 LibHTTP: Defer setting the response time until headers are received
We currently set the response time to when the cache entry writer is
created. This is more or less the same as the request start time, so
this is not correct.

This was a regression from 5384f84550.
That commit changed when the writer was created, but did not move the
setting of the response time to match.

We now set the response time to when the HTTP response headers have been
received (again), which matches how Chromium behaves:

https://source.chromium.org/chromium/chromium/src/+/refs/tags/144.0.7500.0:net/url_request/url_request_job.cc;l=425-433
2026-01-10 23:31:42 +01:00
..
CacheEntry.cpp LibHTTP: Defer setting the response time until headers are received 2026-01-10 23:31:42 +01:00
CacheEntry.h LibHTTP+RequestServer: Do not flush partial responses to the cache index 2026-01-08 11:59:12 +01:00
CacheIndex.cpp LibHTTP: Prefix disk cache debug messages with "[disk]" text 2026-01-10 09:02:41 -05:00
CacheIndex.h LibHTTP: Use correct cache key type in disk cache index entry storage 2025-12-21 09:24:51 -06:00
CacheRequest.h LibHTTP+RequestServer: Implement the stale-while-revalidate directive 2025-12-13 13:07:02 -06:00
DiskCache.cpp LibHTTP: Prefix disk cache debug messages with "[disk]" text 2026-01-10 09:02:41 -05:00
DiskCache.h LibHTTP+RequestServer: Implement the stale-while-revalidate directive 2025-12-13 13:07:02 -06:00
MemoryCache.cpp LibHTTP: Do not respond to Range requests with cached full responses 2026-01-10 09:02:41 -05:00
MemoryCache.h LibHTTP+LibWeb: Do not cache range requests (for now) 2026-01-08 11:59:12 +01:00
Utilities.cpp LibHTTP+LibWeb: Do not cache range requests (for now) 2026-01-08 11:59:12 +01:00
Utilities.h LibHTTP+LibWeb: Do not cache range requests (for now) 2026-01-08 11:59:12 +01:00
Version.h LibHTTP+RequestServer: Move the HTTP cache implementation to LibHTTP 2025-11-29 08:35:02 -05:00