mirror of
https://github.com/spring-projects/spring-framework.git
synced 2026-09-21 05:09:13 +00:00
Add Cache-Control must-understand directive
Signed-off-by: heka1024 <heka1024@gmail.com>
This commit is contained in:
@@ -78,6 +78,12 @@ class CacheControlTests {
|
||||
assertThat(cc.getHeaderValue()).isEqualTo("no-store");
|
||||
}
|
||||
|
||||
@Test
|
||||
void mustUnderstand() {
|
||||
CacheControl cc = CacheControl.noStore().mustUnderstand();
|
||||
assertThat(cc.getHeaderValue()).isEqualTo("no-store, must-understand");
|
||||
}
|
||||
|
||||
@Test
|
||||
void staleIfError() {
|
||||
CacheControl cc = CacheControl.maxAge(1, TimeUnit.HOURS).staleIfError(2, TimeUnit.HOURS);
|
||||
|
||||
Reference in New Issue
Block a user