-
Notifications
You must be signed in to change notification settings - Fork 83
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
feat: allow to configure header name for reverse_proxy_ttl specific value #638
Conversation
7a5e617
to
07ac52c
Compare
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.
thanks, this makes sense to have this configurable 👍
can you please
- add a note about this new option to the changelog
- add some tests that ensure changing the header to a non-default name works? in the CacheControlListenerTest unit test and the ConfigurationTest unit test (the later is currently failing because the default value is showing up and not yet expected by the test)
- update headers.rst documentation: add a mention and additional example (i'd keep the existing example and add another one to show how to customize the header) to the reverse_proxy_ttl section
7a5c1f0
to
35a73cc
Compare
@dbu thanks a lot for your fast review here 👍🏻 |
thanks for the quick reaction. can you document in the reference documentation instead of the features overview? and adjust the |
35a73cc
to
8c3ee8b
Compare
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.
thanks!
wonderful thanks @dbu for your time here ! |
In strict mode, this is the error you'll be receiving:
|
This seems also introduce other issues:
|
Thank you all! |
from FriendsOfSymfony/FOSHttpCache#591
Fastly allows to cache via this https://www.fastly.com/documentation/reference/glossary/#term-surrogate-control header
Surrogate-Control
(see also https://docs.fastly.com/en/guides/controlling-caching#setting-different-ttls-for-fastly-cache-and-web-browsers)
a specific origin response header, and this bundle allows to define a default value
this PR is allows to configure the ttl header name in the bundle avoid to create a fastly vcl or compute code for example