Closed mbyczkowski closed 7 years ago
Looking at RFC7234 (https://tools.ietf.org/html/rfc7234#section-5.3):
A cache recipient MUST interpret invalid date formats, especially the value "0", as representing a time in the past (i.e., "already expired").
This change sets Expires header to "zero" time for any invalid date input.
Great patch and thanks for adding a test case!
Looking at RFC7234 (https://tools.ietf.org/html/rfc7234#section-5.3):
This change sets Expires header to "zero" time for any invalid date input.