cachekey: added --canonical-prefix parameter#5865
cachekey: added --canonical-prefix parameter#5865gtenev merged 1 commit intoapache:masterfrom gtenev:cachekey_keep_uri_scheme_authority
Conversation
|
This patch fixes a problem found by @knutsel while using I would like to have this PR back ported to 9.x as a "bug fix" for this broken use-case which would allow |
|
An offline chat with @ezelkow1 about his experiments with this new feature made me realize that an arbitrary combining of all prefix related parameters could also yield a valid host name in the final resulting cache key, depending on the static value provided ( |
|
[approve ci autest] |
ezelkow1
left a comment
There was a problem hiding this comment.
Looks good, tested here with various scenarios. After the last fix push it seems to work as advertised
In certain use-cases when calculating the prefix (the initial value of the new cache key) we need to have the scheme, host and port in their original form from the request URI, i.e. when hosting.config is used the cache key is expected to contain a valid URI authority element used for volume selection. More details about the new parameter and its functionality can be found in doc/admin-guide/plugins/cachekey.en.rst
|
Cherry-picked to v9.0.x branch. |
|
Cherry-picked to 8.1.x |
In certain use-cases when calculating the prefix (the initial value
of the new cache key) we need to have the scheme, host and port in
their original form from the request URI, i.e. when hosting.config
is used the cache key is expected to contain a valid URI authority
element used for volume selection.
More details about the new parameter and its functionality can be
found in doc/admin-guide/plugins/cachekey.en.rst