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

[RFC] feat: introduce new reverse_proxy_cache_control config to allow configuring specific cache control for reverse proxy #640

Open
wants to merge 1 commit into
base: 3.x
Choose a base branch
from

Conversation

94noni
Copy link
Contributor

@94noni 94noni commented Jan 30, 2025

hello 👋🏻

this is kind of a following PR of #638


we are in the process of leveraging fastly, and fastly waits same value as the Cache-Control one, thus we need some array values not one value
see doc and doc

actually, its only stated to have an integer in the doc for reverse_proxy_ttl which they translates to the proper header name for fastly

so as a hack for now, we arrive to do such things as:

'reverse_proxy_ttl' => 'max-age=' . 2592000 . ' , public',

obviously, I do prefer to have a proper new config map (related to the normal cache_control):

'reverse_proxy_cache_control' => ['max_age' => 2592000, 'public' => true,],

for now no test or whatsoever, I just want to discuss the topic, so opening as an rfc

thx !

@94noni 94noni force-pushed the feat-reverse-proxy-control branch 3 times, most recently from 1457c2b to 2109df4 Compare January 30, 2025 08:51
@94noni 94noni changed the title feat: allow configuring the with cache control directives feat: allow configuring the reverse_proxy_ttl with cache control directives Jan 30, 2025
@94noni 94noni force-pushed the feat-reverse-proxy-control branch 3 times, most recently from 3e1c45f to d4638be Compare January 30, 2025 10:24
@94noni 94noni changed the title feat: allow configuring the reverse_proxy_ttl with cache control directives feat: introduce new reverse_proxy_cache_control config to allow configuring specific cache control for reverse proxy Jan 30, 2025
@94noni 94noni force-pushed the feat-reverse-proxy-control branch 2 times, most recently from a9e3d20 to 62e56b1 Compare January 30, 2025 10:36
@94noni 94noni changed the title feat: introduce new reverse_proxy_cache_control config to allow configuring specific cache control for reverse proxy [RFC] feat: introduce new reverse_proxy_cache_control config to allow configuring specific cache control for reverse proxy Jan 31, 2025
@94noni 94noni force-pushed the feat-reverse-proxy-control branch 3 times, most recently from 7825d09 to 5a4c2fa Compare January 31, 2025 14:59
…guring specific cache control for reverse proxy
@94noni 94noni force-pushed the feat-reverse-proxy-control branch from 5a4c2fa to 40f7659 Compare January 31, 2025 15:03
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.

1 participant