mirror of
https://github.com/spring-projects/spring-boot.git
synced 2026-10-01 14:59:50 +00:00
Fix getter and setter for sMaxAge
This commit is contained in:
+2
-2
@@ -444,11 +444,11 @@ public class ResourceProperties {
|
||||
this.staleIfError = staleIfError;
|
||||
}
|
||||
|
||||
public Duration getsMaxAge() {
|
||||
public Duration getSMaxAge() {
|
||||
return this.sMaxAge;
|
||||
}
|
||||
|
||||
public void setsMaxAge(Duration sMaxAge) {
|
||||
public void setSMaxAge(Duration sMaxAge) {
|
||||
this.sMaxAge = sMaxAge;
|
||||
}
|
||||
|
||||
|
||||
+1
-1
@@ -95,7 +95,7 @@ public class ResourcePropertiesTests {
|
||||
cacheControlProperties.setMustRevalidate(true);
|
||||
cacheControlProperties.setNoTransform(true);
|
||||
cacheControlProperties.setProxyRevalidate(true);
|
||||
cacheControlProperties.setsMaxAge(Duration.ofSeconds(5));
|
||||
cacheControlProperties.setSMaxAge(Duration.ofSeconds(5));
|
||||
cacheControlProperties.setStaleIfError(Duration.ofSeconds(6));
|
||||
cacheControlProperties.setStaleWhileRevalidate(Duration.ofSeconds(7));
|
||||
this.properties.setCacheControl(cacheControlProperties);
|
||||
|
||||
Reference in New Issue
Block a user