mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-19 02:10:26 +00:00
The caching RFC is quite strict about the format of date strings. If we received a revalidation attribute with an invalid date string, we would previously fail a runtime assertion. This was because to start a revalidation request, we would simply check for the presence of any revalidation header; but then when we issued the request, we would fail to parse the header, and end up with all attributes being null. We now don't parse the revalidation attributes at all. Whatever we receive in the Last-Modified response header is what we will send in the If-Modified-Since request header, verbatim. For better or worse, this is how other browsers behave. So if the server sends us an invalid date string, it can receive its own date format for revalidation. |
||
|---|---|---|
| .. | ||
| CacheEntry.cpp | ||
| CacheEntry.h | ||
| CacheIndex.cpp | ||
| CacheIndex.h | ||
| CacheMode.h | ||
| CacheRequest.h | ||
| DiskCache.cpp | ||
| DiskCache.h | ||
| MemoryCache.cpp | ||
| MemoryCache.h | ||
| Utilities.cpp | ||
| Utilities.h | ||
| Version.h | ||