What would happen if this header came in as "max-age=XX, public"? I don't think the spec enforces a particular order and there may be other directives in here as well. Might be better off splitting the value on the comma and looking for the directives of interest to determine what to do