提交 ac3847bf 编写于 作者: B Brian Clozel

Clarify Javadoc for CacheControl.noCache,noStore

This change makes clear that this is the intent of the CacheControl API
not to provide a way to configure both "no-cache" and "no-store"
directives for the "Cache-Control" header.

Issue: SPR-13780
上级 513c1ea3
...@@ -114,7 +114,7 @@ public class CacheControl { ...@@ -114,7 +114,7 @@ public class CacheControl {
* clients sending conditional requests (with "ETag", "If-Modified-Since" headers) and the server responding * clients sending conditional requests (with "ETag", "If-Modified-Since" headers) and the server responding
* with "304 - Not Modified" status. * with "304 - Not Modified" status.
* <p>In order to disable caching and minimize requests/responses exchanges, the {@link #noStore()} directive * <p>In order to disable caching and minimize requests/responses exchanges, the {@link #noStore()} directive
* should be used. * should be used instead of {@link #noCache()}.
* @return {@code this}, to facilitate method chaining * @return {@code this}, to facilitate method chaining
* @see <a href="https://tools.ietf.org/html/rfc7234#section-5.2.2.2">rfc7234 section 5.2.2.2</a> * @see <a href="https://tools.ietf.org/html/rfc7234#section-5.2.2.2">rfc7234 section 5.2.2.2</a>
*/ */
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册