Skip to content

Disable conversion of HEAD method to GET#89

Open
aspettl wants to merge 1 commit into
rpardini:masterfrom
aspettl:disable_convert_head_requests
Open

Disable conversion of HEAD method to GET#89
aspettl wants to merge 1 commit into
rpardini:masterfrom
aspettl:disable_convert_head_requests

Conversation

@aspettl

@aspettl aspettl commented Apr 23, 2021

Copy link
Copy Markdown

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

aspettl commented Nov 19, 2022

Copy link
Copy Markdown
Author

@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.

@rpardini
rpardini force-pushed the disable_convert_head_requests branch from 399ccfc to 7b3e99a Compare February 23, 2025 23:30
rpardini
rpardini previously approved these changes Feb 23, 2025
@rpardini
rpardini self-requested a review July 1, 2026 10:47
@rpardini rpardini added the outdated Outdated, needs large rework against the master branch label Jul 1, 2026
@rpardini
rpardini dismissed their stale review July 1, 2026 10:49

needs rebase

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

outdated Outdated, needs large rework against the master branch

Projects

None yet

Development

Successfully merging this pull request may close these issues.

proxy_cache_convert_head required for pushing to ECR

2 participants