Deprecate CacheControlServerHttpHeadersWriter.CACHE_CONTRTOL_VALUE

The member is public, so we need to deprecate it rather than remove it.

Issue gh-18035

Closes gh-18058
This commit is contained in:
Rob Winch 2025-10-16 13:45:45 -05:00
parent f5d33457dc
commit 2eb5da3764

View File

@ -51,6 +51,13 @@ public class CacheControlServerHttpHeadersWriter implements ServerHttpHeadersWri
*/
public static final String CACHE_CONTROL_VALUE = "no-cache, no-store, max-age=0, must-revalidate";
/**
* The value for the cache control value.
* @deprecated Please use {@link #CACHE_CONTROL_VALUE}
*/
@Deprecated(forRemoval = true, since = "7.0")
public static final String CACHE_CONTRTOL_VALUE = CACHE_CONTROL_VALUE;
/**
* The delegate to write all the cache control related headers
*/