Multipy usage of Cache-Control header -
is possible add more once cache-control
header? setting effective if see following headers?
cache-control: no-cache, no-store, private cache-control: no-cache
is setting accumulative?
from rfc 7230, 3.2.2. field order:
a recipient may combine multiple header fields same field name 1 "field-name: field-value" pair, without changing semantics of message, appending each subsequent field value combined field value in order, separated comma.
this request treated same as:
cache-control: no-cache, no-store, private, no-cache
note in rfc 7234, 4.2.1. calculating freshness lifetime:
when there more 1 value present given directive (e.g., 2 expires header fields, multiple cache-control: max-age directives), directive's value considered invalid.
i believe example give valid but, example:
cache-control: max-age=0 cache-control: max-age=3600
would invalid.
Comments
Post a Comment