Add env-based configuration of TTL of Tomcat's static resource cache

Closes gh-9670
This commit is contained in:
Andy Wilkinson
2017-10-30 16:04:37 +00:00
parent 1225a6a05e
commit 5df473a651
4 changed files with 67 additions and 0 deletions

View File

@@ -243,6 +243,7 @@ content into your application; rather pick only the properties that you need.
server.tomcat.protocol-header-https-value=https # Value of the protocol header that indicates that the incoming request uses SSL.
server.tomcat.redirect-context-root= # Whether requests to the context root should be redirected by appending a / to the path.
server.tomcat.remote-ip-header= # Name of the http header from which the remote ip is extracted. For instance `X-FORWARDED-FOR`
spring.tomcat.resource.cache-ttl=5000 # Time-to-live in milliseconds of the static resource cache.
server.tomcat.uri-encoding=UTF-8 # Character encoding to use to decode the URI.
server.undertow.accesslog.dir= # Undertow access log directory.
server.undertow.accesslog.enabled=false # Enable access log.