-
Notifications
You must be signed in to change notification settings - Fork 41.6k
Add configuration for Tomcat's cachingAllowed property #13614
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
This looks like a nice addition to me. I'd perhaps suggest a different property name since the |
|
Agreed on the |
|
+1 for a We should verify the behaviour with war packaging as we already customize the resource root in that case to hide the loader classes. |
|
Ok, group consensus wins. I’ll head that direction. I’ll try to get moving on it this afternoon (UTC-4), as I’m AFK currently. And, generally many thanks for the pleasant discussion/contribution paradigm. |
|
(Pardon the build failure there, will fix that.) I think that last commit accomplishes what we're going for here, yeah? @wilkinsona - by "verify the behaviour with war packaging," do you mean running a (Also plan to squash commits down when you guys think we're ready to merge.) |
|
@philwebb - should I go ahead and squash the commits down now? |
|
@chtompki No, don't worry about that. We'll do it when we rebase for merge. |
|
This is the code that we need to double-check. I think it'll be fine but want to be sure that one customisation won't trample over the other. |
|
Gotcha. I’ll poke around in there in a simple project consuming my locally built 2.1.0-SNAPSHOT to see if I can see the interplay between the two different places. Further, might it be worth putting both customizations in the same place to ensure better maintainability? |
|
When merging this one, we should make sure to update the appendix with the new property. |
|
@snicoll - is “the appendix” here: https://github.com/spring-projects/spring-boot/blob/master/spring-boot-project/spring-boot-docs/src/main/asciidoc/appendix-application-properties.adoc ? If so I’ll add that into the pull request. |
|
Yes, thank you. |
|
Curious if you think that there's anything else here for me to do, while we wait in the backlog? |
|
@chtompki I think we're good, thank you. Unless you'd like to rename the property to |
* pr/13614: Polish "Add configuration for Tomcat's cachingAllowed property" Add configuration for Tomcat's cachingAllowed property
|
Turns out we already had a @chtompki thank you very much for your first contribution to Spring Boot. This is now merged in |
This fixes #13613 by adding the
ServerProperties.Tomcatentryserver.tomcat.is-web-resource-caching-allowed. Which, in turn, sets on the tomcatWebResourceRootthe valueisCachingAllowed. This essentially turns off the WebResource file level caching mechanics that Tomcat performs. Generally this is a configurable option, and I would like to expose it to be configurable inapplication.properties.