Skip to content

Commit fea8998

Browse files
committed
Sett cache-control headers på filer i CDN
Cache 5min i dev og 10min i prod.
1 parent 76bc992 commit fea8998

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

.github/workflows/main-v3.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,8 @@ jobs:
7474
cache_invalidation: true
7575
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
7676
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
77+
headers: |-
78+
cache-control: 'public, max-age=300'
7779
7880
deploy-prod:
7981
name: Deploy to prod
@@ -98,3 +100,5 @@ jobs:
98100
cache_invalidation: true
99101
identity_provider: ${{ secrets.NAIS_WORKLOAD_IDENTITY_PROVIDER }}
100102
project_id: ${{ vars.NAIS_MANAGEMENT_PROJECT_ID }}
103+
headers: |-
104+
cache-control: 'public, max-age=600'

0 commit comments

Comments
 (0)