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

Disable conversion of HEAD method to GET #89

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aspettl
Copy link

@aspettl aspettl commented Apr 23, 2021

This PR disables the conversion of request method HEAD to GET when caching applies. As the documentation at http://nginx.org/en/docs/http/ngx_http_proxy_module.html#proxy_cache_convert_head suggests, the cache key is extended with the method.
In order to not invalidate existing caches, I decided to keep the cache keys for GET as they are. Only HEAD requests will use a "HEAD:" prefix. This could be cleaned up later when a breaking change needs to be made anyway (e.g., why don't we have the FQDN or registry name in the cache key?).

@aspettl
Copy link
Author

aspettl commented Nov 19, 2022

@rpardini Is there any concern on merging this?
I'd also like to see #107, which would produce a conflict here, but I can fix that.

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.

proxy_cache_convert_head required for pushing to ECR
1 participant