Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it valid to list multiple fields in a single Vary header?

I know you can do this

Vary: Accept-Encoding
Vary: Accept-Language

but can you do this

Vary: Accept-Encoding, Accept-Language
like image 578
OrangeDog Avatar asked Nov 10 '11 12:11

OrangeDog


1 Answers

Yes.

That's, btw, true for all header fields that can occur multiple times (with the exception of set-cookie, which has broken syntax). See HTTP/1.1, part 1: URIs, Connections, and Message Parsing - Section 3.2.

like image 89
Julian Reschke Avatar answered Nov 25 '22 10:11

Julian Reschke