Skip to content

Conversation

@ayudovin
Copy link
Contributor

@ayudovin ayudovin commented Oct 9, 2018

this bug

@spring-projects-issues spring-projects-issues added the status: waiting-for-triage An issue we've not yet triaged label Oct 9, 2018
@philwebb philwebb added type: bug A general bug and removed status: waiting-for-triage An issue we've not yet triaged labels Oct 11, 2018
@philwebb philwebb added this to the 2.1.x milestone Oct 11, 2018
if (cachePeriod != null) {
registration.setCacheControl(CacheControl
.maxAge(cachePeriod.toMillis(), TimeUnit.MILLISECONDS));
cacheControl.sMaxAge(cachePeriod.toMillis(), TimeUnit.MILLISECONDS);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

sMaxAge looks like a typo here - if the current tests are not breaking with that, they're probably not testing it right.

if (cachePeriod != null) {
registration.setCacheControl(CacheControl
.maxAge(cachePeriod.toMillis(), TimeUnit.MILLISECONDS));
cacheControl.sMaxAge(cachePeriod.toMillis(), TimeUnit.MILLISECONDS);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

same typo

@ayudovin
Copy link
Contributor Author

@bclozel, thank you for your comments, I have added changes, Can you see again ?

@bclozel bclozel self-assigned this Oct 12, 2018
@bclozel bclozel modified the milestones: 2.1.x, 2.1.0.RC1 Oct 15, 2018
@bclozel
Copy link
Member

bclozel commented Oct 15, 2018

Merged with 9e5f171.
Thanks @ayudovin !

@bclozel bclozel closed this Oct 15, 2018
@wilkinsona wilkinsona changed the title spring.resources.cache.cachecontrol is configured in webFluxAutoConfiguration WebFluxAutoConfiguration ignores spring.resources.cache.cachecontrol Oct 16, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

type: bug A general bug

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants