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
?
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.
They are equivalent. Order doesn't even make a different in that scenario anyway.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With