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

Remove unused cache behavior #357

Merged
merged 1 commit into from
Oct 23, 2023
Merged

Conversation

jdno
Copy link
Member

@jdno jdno commented Oct 23, 2023

The custom cache behavior for /assets was never used, since the pattern matches only the specific /assets URL and not any resources served under it (e.g. /assets/foo). This was discovered while investigating the inconsistencies in #356.

Since the configuration was never used in the first place, we are removing it to remove some complexity.

cc @Turbo87

The custom cache behavior for `/assets` was never used, since the
pattern matches only the specific `/assets` URL and not any resources
served under it (e.g. `/assets/foo`). This was discovered while
investigating the inconsistencies in rust-lang#356.

Since the configuration was never used in the first place, we are
removing it to remove some complexity.
@jdno jdno requested a review from Mark-Simulacrum October 23, 2023 11:46
Copy link
Member

@Mark-Simulacrum Mark-Simulacrum left a comment

Choose a reason for hiding this comment

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

I'm fine with removing but it also seems like plausibly useful to customize some parts for it. In any case, seems okay for now.

@Turbo87
Copy link
Member

Turbo87 commented Oct 23, 2023

@Mark-Simulacrum agreed, though it is apparently still using some sort of legacy caching configuration for CloudFront. we thought it was probably better to recreate it using their (new?) recommended caching policy system instead, and potentially wait for crates.io to serve assets directly from S3 instead of Heroku. simplifying the config here for now will likely make the migration easier :)

@jdno jdno merged commit a8f9734 into rust-lang:master Oct 23, 2023
3 checks passed
@jdno jdno deleted the remove-obsolete-behavior branch October 23, 2023 12:21
jdno added a commit to jdno/rust-simpleinfra that referenced this pull request Oct 23, 2023
Two recent changes to the CloudFront configuration (rust-lang#356 and rust-lang#357) for
crates.io have been merged and deployed to both staging and production.
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.

3 participants