Cache-Control: before public or max-age?

header, http

Solution

Here's the grammar for the Cache-Control directive from RFC 7234:

Cache-Control   = 1#cache-directive
cache-directive = token [ "=" ( token / quoted-string ) ]

`1#cache-directive` means that you need at least one `cache-directive`. Since `public` and `max-age` are both Cache-Control directives, the order doesn't matter.

Problem

I believe they are both equivalent but to be sure I would like to know others. Which version is correct? `Cache-Control: public, max-age=60` `Cache-Control: max-age=60, public` ?

Original source