Open leske42 opened 1 week ago
[UPDATE] From RFC 9110 (obsoletes 7232)
"A server that is not the origin server for the target resource and cannot act as a cache for requests on the target resource MUST NOT evaluate the conditional request header fields defined by this specification"
So seems like unless we do the cache from the bonus we should not implement If-Modified-Since
and If-Unmodified-Since
These are the header fields we need to parse:
Others will get ignored, either because they do not concern us or because it would be too complicated to implement and the RFC allows for this as seen in following cases:
[Accept]
[Accept-Charset]
[Accept-Language]
This means, if they send one of the above and we do not parse it, two things can happen: we either happen to coincidentally support what they want, and then all is good. OR we happen to not support it, but the RFC allows for sending default stuff in that case. So because of this parsing is not needed.
And for Accept-Encoding we need to consider: