XML configuration support for RFC 5861
This commit adds the XML+XSD configuration part of the RFC 5861 Cache-Control directives added in Spring's `CacheControl`. Issue: SPR-13841
This commit is contained in:
@@ -581,6 +581,22 @@
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[
|
||||
Adds a "s-maxage" directive in the Cache-Control header.
|
||||
This directive has the same meaning as the "max-age" directive, except it only applies to shared caches.
|
||||
]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:attribute name="stale-while-revalidate" type="xsd:int" use="optional">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[
|
||||
Adds a "stale-while-revalidate" directive in the Cache-Control header.
|
||||
This indicates that caches may serve the response after it becomes stale up to the given number of seconds.
|
||||
]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
</xsd:attribute>
|
||||
<xsd:attribute name="stale-if-error" type="xsd:int" use="optional">
|
||||
<xsd:annotation>
|
||||
<xsd:documentation><![CDATA[
|
||||
Adds a "s-maxage" directive in the Cache-Control header.
|
||||
This directive has the same meaning as the "max-age" directive, except it only applies to shared caches.
|
||||
]]></xsd:documentation>
|
||||
</xsd:annotation>
|
||||
|
||||
Reference in New Issue
Block a user