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

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

  •  04-06-2022
  •  | 
  •  

Pergunta

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?

Foi útil?

Solução

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

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top