What should a HTTP server do when clients use weak etags for subrange GET requests?

StackOverflow https://stackoverflow.com/questions/17908819

  •  04-06-2022
  •  | 
  •  

문제

RFC 2616 Section 13.3.3:

Clients MAY issue simple (non-subrange) GET requests with either weak validators or strong validators. Clients MUST NOT use weak validators in other forms of request.

Assuming all clients are RFC conforming, we will never see weak validators used for subrange GET requests.

However, since not all clients will be conforming, how should a HTTP server react when clients use weak validators for subrange GET requests?

Did the RFC have anything to say about this? Should the server inform the client of an error, or should it continue processing as though the validator does not exist?

도움이 되었습니까?

해결책

It's up to the server. Both signalling an error or just returning the complete payload can make sense.

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top