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
[DRAFT] Updated DDL cdn deployment and endpoint for shorter cache control #2305
base: main
Are you sure you want to change the base?
Conversation
@@ -106,6 +106,15 @@ steps: | |||
flattenFolders: true | |||
displayName: 'Copy validDomains for CDN' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we want it to be 7 days, should we remove this line which will still put a copy in the original 7300 days place?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We want this for back compat with the older versions of TeamsJS, to make sure that they are still being supported. The 7300 days does do a refresh from origin every 7 days I believe and so it will eventually be propagated.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oh yes, makes sense. Can you add a comment above this line explaining that? Would not be crazy for a dummy like me to come along later and be like "Why do we have two of these things? DELETE"
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
🕐
Currently our DDL deployments have a default
cache-control
setting of 7 days to 7300 days. This means that when we make updates to the DDL that need to be seen more immediately we would need to flush the CDN. Moving thevalidDomains
artifact into a*7dttl*
folder designation updates thecache-control
to one with a 7 day time to live to avoid needing a CDN flush.