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

[DRAFT] Updated DDL cdn deployment and endpoint for shorter cache control #2305

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

jadahiya-MSFT
Copy link
Contributor

@jadahiya-MSFT jadahiya-MSFT commented May 3, 2024

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 the validDomains artifact into a *7dttl* folder designation updates the cache-control to one with a 7 day time to live to avoid needing a CDN flush.

@jadahiya-MSFT jadahiya-MSFT requested a review from a team as a code owner May 3, 2024 18:09
@@ -106,6 +106,15 @@ steps:
flattenFolders: true
displayName: 'Copy validDomains for CDN'
Copy link
Contributor

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?

Copy link
Contributor Author

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.

Copy link
Contributor

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"

Copy link
Contributor

@AE-MS AE-MS left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🕐

@jadahiya-MSFT jadahiya-MSFT changed the title Updated DDL cdn deployment and endpoint for shorter cache control [DRAFT] Updated DDL cdn deployment and endpoint for shorter cache control May 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants