Skip to content

Commit f89136b

Browse files
committed
fix/qg-273: исправлены настройки кеширования статических ресурсов в Spring
Без этого не работает кэширование в nginx и в проде клиенты на каждый запрос перезагружают все ресурсы
1 parent 686a57b commit f89136b

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

app/src/main/resources/application.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,11 +27,14 @@ spring:
2727

2828
web:
2929
resources:
30-
strategy:
31-
content:
32-
enabled=true
33-
paths=/**
34-
30+
chain:
31+
strategy:
32+
content:
33+
enabled: true
34+
paths: /**
35+
cache:
36+
cachecontrol:
37+
max-age: 1h
3538

3639
management:
3740
endpoints:

0 commit comments

Comments
 (0)