Merge pull request #11111 from izeye:fix-s-max-age

* pr/11111:
  Fix getter and setter for sMaxAge
pull/11117/head
Brian Clozel 7 years ago
commit 6f97bc58a6

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