mirror of
https://github.com/spring-projects/spring-petclinic.git
synced 2025-07-17 13:05:49 +00:00
Caching, compression and devtools configuration
This commit is contained in:
parent
ce9f9a8181
commit
841116f196
3 changed files with 9 additions and 5 deletions
|
@ -0,0 +1,4 @@
|
|||
spring.resources.static-locations=classpath:/static/,file:springboot-petclinic-client/src/,file:springboot-petclinic-client/bower_components/
|
||||
|
||||
spring.devtools.restart.additional-paths=springboot-petclinic-client/src/,springboot-petclinic-client/bower_components/
|
||||
spring.devtools.restart.additional-exclude=**/*.html,**/*.js,**/*.css
|
|
@ -0,0 +1,2 @@
|
|||
spring.resources.chain.strategy.content.enabled=true
|
||||
spring.resources.cache-period=86400
|
|
@ -15,8 +15,6 @@ management.contextPath=/manage
|
|||
# Logging
|
||||
logging.level.org.springframework=INFO
|
||||
|
||||
spring.resources.chain.enabled=true
|
||||
spring.resources.chain.gzipped=true
|
||||
spring.resources.cache-period=600
|
||||
spring.resources.chain.strategy.content.enabled=true
|
||||
spring.resources.chain.strategy.content.paths=/**/*.js, /**/*.css, /**/*.png, /**/*.html
|
||||
server.compression.enabled=true
|
||||
server.compression.mime-types=application/json,text/css,application/javascript
|
||||
server.compression.min-response-size=2048
|
Loading…
Reference in a new issue