Просмотр исходного кода

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
Rob Winch 1 неделя назад
Родитель
Сommit
2eb5da3764

+ 7 - 0
web/src/main/java/org/springframework/security/web/server/header/CacheControlServerHttpHeadersWriter.java

@@ -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
 	 */