Fix getter and setter for sMaxAge

pull/11111/head
Johnny Lim 7 years ago
parent 1b59e88aeb
commit 858d325577

@ -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;
}

@ -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);

Loading…
Cancel
Save