Skip to content

Add CloudFront support #589

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

Merged
merged 4 commits into from
May 4, 2023
Merged

Conversation

Jean-Beru
Copy link
Contributor

This PR adds the support of CloudFront proxy using https://github.com/Jean-Beru/fos-http-cache-cloudfront. See FriendsOfSymfony/FOSHttpCache#542.

This dependency is added in Composer as a "suggest" (and "dev" for testing purpose). We can also discuss about removing it by merging its classes in https://github.com/FriendsOfSymfony/FOSHttpCache.

Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

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

thanks, good job! i added some suggestions to clarify the documentation.

can you please rebase on 2.x to get the CS fixes that have been needed? and add cloudfront to the spelling word list so the spellchecker is happy?

the ci runs tests with various old PHP versions. i suggest that we remove require-dev of your library and make your new test cases if (!class_exists(...)) {$this->markAsSkipped('jean-beru/fos-http-cache-cloudfront not available');}

and in the github action add a conditional step that only runs if php version is 8.1 or newer that composer require your library

Jean-Beru and others added 2 commits May 4, 2023 11:37
@Jean-Beru Jean-Beru force-pushed the add-cloudfront-support branch from 6458394 to 741f475 Compare May 4, 2023 10:48
@Jean-Beru
Copy link
Contributor Author

PR is rebased, dev-depencency is removed and CI is green 🎉

Sorry for the delay.

Copy link
Contributor

@dbu dbu left a comment

Choose a reason for hiding this comment

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

fantastic work, thanks!

@dbu dbu merged commit 0d22d7e into FriendsOfSymfony:2.x May 4, 2023
@dbu
Copy link
Contributor

dbu commented May 4, 2023

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.

2 participants