Skip to content

Commit f501c36

Browse files
committed
fix cache behavior
1 parent 47a8ec0 commit f501c36

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

cloudformation/main.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -602,6 +602,28 @@ Resources:
602602
Forward: none
603603
CachePolicyId: 658327ea-f89d-4fab-a63d-7e88639e58f6 # caching-optimized
604604
CacheBehaviors:
605+
- PathPattern: "/api/v1/events"
606+
TargetOriginId: ApiGatewayOrigin
607+
ViewerProtocolPolicy: redirect-to-https
608+
AllowedMethods:
609+
- GET
610+
- HEAD
611+
- OPTIONS
612+
- PUT
613+
- POST
614+
- DELETE
615+
- PATCH
616+
CachedMethods:
617+
- GET
618+
- HEAD
619+
ForwardedValues:
620+
QueryString: true
621+
QueryStringCacheKeys:
622+
- host
623+
- ts
624+
- upcomingOnly
625+
Cookies:
626+
Forward: none
605627
- PathPattern: "/api/v1/events/*"
606628
TargetOriginId: ApiGatewayOrigin
607629
ViewerProtocolPolicy: redirect-to-https

0 commit comments

Comments
 (0)