static 캐시 설정

This commit is contained in:
Rinjae
2026-01-18 19:42:59 +09:00
parent 3754d97f21
commit 7d22bd3e0c
5 changed files with 38 additions and 0 deletions
+8
View File
@@ -3,6 +3,14 @@ server.port: '30200'
spring:
jta:
enabled: true
web:
resources:
cache:
period: 0 # 캐시 비활성화 (개발 환경)
cachecontrol:
max-age: 0
must-revalidate: true
no-cache: true
jpa:
properties:
hibernate:
@@ -3,6 +3,14 @@ server.port: '30200'
spring:
jta:
enabled: true
web:
resources:
cache:
period: 0 # 캐시 비활성화 (개발 환경)
cachecontrol:
max-age: 0
must-revalidate: true
no-cache: true
jpa:
properties:
hibernate:
+7
View File
@@ -4,6 +4,13 @@ spring:
config:
activate:
on-profile: prod
web:
resources:
cache:
period: 86400 # 1일 (운영 환경 - 캐시 활성화)
cachecontrol:
max-age: 86400
public: true
jpa:
properties:
hibernate:
+6
View File
@@ -1,6 +1,12 @@
spring:
jta:
enabled: true
web:
resources:
cache:
period: 3600 # 1시간 (스테이징 환경)
cachecontrol:
max-age: 3600
jpa:
properties:
hibernate:
+9
View File
@@ -25,6 +25,15 @@ spring:
jpa:
open-in-view: false
web:
resources:
cache:
period: 0 # 캐시 비활성화 (개발환경)
cachecontrol:
max-age: 0
must-revalidate: true
no-cache: true
jta:
enabled: true
atomikos: