Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PN-13265: cache refresh updated for selfcare-PG #1413

Merged
merged 8 commits into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
144 changes: 142 additions & 2 deletions aws-cdn-templates/one-cdn.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -305,6 +305,34 @@ Resources:
CachePolicyId: !Ref WebsiteCDNCachingPolicyOneHour
ResponseHeadersPolicyId: !Ref DefaultHeaderPolicy
PathPattern: /icons*
- Fn::If:
- IsPortalePg
- AllowedMethods:
- GET
- HEAD
CachedMethods:
- GET
- HEAD
TargetOriginId: pn-SelfCare-PG
ViewerProtocolPolicy: redirect-to-https
CachePolicyId: !Ref WebsiteCDNCachingPolicyFiveMinutes
ResponseHeadersPolicyId: !Ref SelfcareHeaderPolicy
PathPattern: /auth/icons/*
- !Ref "AWS::NoValue"
- Fn::If:
- IsPortalePg
- AllowedMethods:
- GET
- HEAD
CachedMethods:
- GET
- HEAD
TargetOriginId: pn-SelfCare-PG
ViewerProtocolPolicy: redirect-to-https
CachePolicyId: !Ref WebsiteCDNCachingPolicyFiveMinutes
ResponseHeadersPolicyId: !Ref SelfcareHeaderPolicy
PathPattern: /auth/index.html
- !Ref "AWS::NoValue"
- Fn::If:
- IsPortalePg
- AllowedMethods:
Expand All @@ -319,6 +347,34 @@ Resources:
ResponseHeadersPolicyId: !Ref SelfcareHeaderPolicy
PathPattern: /auth*
- !Ref "AWS::NoValue"
- Fn::If:
- IsPortalePg
- AllowedMethods:
- GET
- HEAD
CachedMethods:
- GET
- HEAD
TargetOriginId: pn-SelfCare-PG
ViewerProtocolPolicy: redirect-to-https
CachePolicyId: !Ref WebsiteCDNCachingPolicyFiveMinutes
ResponseHeadersPolicyId: !Ref SelfcareHeaderPolicy
PathPattern: /dashboard/icons/*
- !Ref "AWS::NoValue"
- Fn::If:
- IsPortalePg
- AllowedMethods:
- GET
- HEAD
CachedMethods:
- GET
- HEAD
TargetOriginId: pn-SelfCare-PG
ViewerProtocolPolicy: redirect-to-https
CachePolicyId: !Ref WebsiteCDNCachingPolicyFiveMinutes
ResponseHeadersPolicyId: !Ref SelfcareHeaderPolicy
PathPattern: /dashboard/index.html
- !Ref "AWS::NoValue"
- Fn::If:
- IsPortalePg
- AllowedMethods:
Expand All @@ -333,6 +389,34 @@ Resources:
ResponseHeadersPolicyId: !Ref SelfcareHeaderPolicy
PathPattern: /dashboard*
- !Ref "AWS::NoValue"
- Fn::If:
- IsPortalePg
- AllowedMethods:
- GET
- HEAD
CachedMethods:
- GET
- HEAD
TargetOriginId: pn-SelfCare-PG
ViewerProtocolPolicy: redirect-to-https
CachePolicyId: !Ref WebsiteCDNCachingPolicyFiveMinutes
ResponseHeadersPolicyId: !Ref SelfcareHeaderPolicy
PathPattern: /assistenza/icons/*
- !Ref "AWS::NoValue"
- Fn::If:
- IsPortalePg
- AllowedMethods:
- GET
- HEAD
CachedMethods:
- GET
- HEAD
TargetOriginId: pn-SelfCare-PG
ViewerProtocolPolicy: redirect-to-https
CachePolicyId: !Ref WebsiteCDNCachingPolicyFiveMinutes
ResponseHeadersPolicyId: !Ref SelfcareHeaderPolicy
PathPattern: /assistenza/index.html
- !Ref "AWS::NoValue"
- Fn::If:
- IsPortalePg
- AllowedMethods:
Expand All @@ -347,6 +431,34 @@ Resources:
ResponseHeadersPolicyId: !Ref SelfcareHeaderPolicy
PathPattern: /assistenza*
- !Ref "AWS::NoValue"
- Fn::If:
- IsPortalePg
- AllowedMethods:
- GET
- HEAD
CachedMethods:
- GET
- HEAD
TargetOriginId: pn-SelfCare-PG
ViewerProtocolPolicy: redirect-to-https
CachePolicyId: !Ref WebsiteCDNCachingPolicyFiveMinutes
ResponseHeadersPolicyId: !Ref SelfcareHeaderPolicy
PathPattern: /onboarding/icons/*
- !Ref "AWS::NoValue"
- Fn::If:
- IsPortalePg
- AllowedMethods:
- GET
- HEAD
CachedMethods:
- GET
- HEAD
TargetOriginId: pn-SelfCare-PG
ViewerProtocolPolicy: redirect-to-https
CachePolicyId: !Ref WebsiteCDNCachingPolicyFiveMinutes
ResponseHeadersPolicyId: !Ref SelfcareHeaderPolicy
PathPattern: /onboarding/index.html
- !Ref "AWS::NoValue"
- Fn::If:
- IsPortalePg
- AllowedMethods:
Expand All @@ -371,10 +483,38 @@ Resources:
- HEAD
TargetOriginId: pn-SelfCare-PG
ViewerProtocolPolicy: redirect-to-https
CachePolicyId: b2884449-e4de-46a7-ac36-70bc7f1ddd6d
CachePolicyId: !Ref WebsiteCDNCachingPolicyFiveMinutes
ResponseHeadersPolicyId: !Ref SelfcareHeaderPolicy
PathPattern: /assets*
- !Ref "AWS::NoValue"
- Fn::If:
- IsPortalePg
- AllowedMethods:
- GET
- HEAD
CachedMethods:
- GET
- HEAD
TargetOriginId: pn-SelfCare-PG
ViewerProtocolPolicy: redirect-to-https
CachePolicyId: !Ref WebsiteCDNCachingPolicyFiveMinutes
ResponseHeadersPolicyId: !Ref SelfcareHeaderPolicy
PathPattern: /microcomponents/static/icons/*
- !Ref "AWS::NoValue"
- Fn::If:
- IsPortalePg
- AllowedMethods:
- GET
- HEAD
CachedMethods:
- GET
- HEAD
TargetOriginId: pn-SelfCare-PG
ViewerProtocolPolicy: redirect-to-https
CachePolicyId: !Ref WebsiteCDNCachingPolicyFiveMinutes
ResponseHeadersPolicyId: !Ref SelfcareHeaderPolicy
PathPattern: /microcomponents/index.html
- !Ref "AWS::NoValue"
- Fn::If:
- IsPortalePg
- AllowedMethods:
Expand Down Expand Up @@ -774,4 +914,4 @@ Outputs:

TooManyRequestsAlarmArn:
Value: !GetAtt TooManyRequestsAlarm.Arn
Description: ARN of distribution too many requests alarm
Description: ARN of distribution too many requests alarm
2 changes: 1 addition & 1 deletion packages/pn-pa-webapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -94,4 +94,4 @@
"vitest-canvas-mock": "^0.3.3",
"vitest-sonar-reporter": "^2.0.0"
}
}
}
Loading