Hi,
i'm trying to implement HTTP Vary with srcache.
A typical upstream response will contain a Vary: Accept-Language field,
header_filter_by_lua_block could then
compute a $storeKey by concatenation of key/value of request fields listed in that Vary header
store url => Vary field in a shared dict
(Upon later request, set_by_lua_block could compute a $requestKey by looking up
in the shared dict to get the list of Vary headers for the requested url.)
Question: is it possible to make srcache_store use $storeKey and not preprocessed key ?
Hi, i'm trying to implement HTTP Vary with srcache. A typical upstream response will contain a
Vary: Accept-Language
field,header_filter_by_lua_block
could thenset_by_lua_block
could compute a $requestKey by looking up in the shared dict to get the list of Vary headers for the requested url.)Question: is it possible to make srcache_store use $storeKey and not preprocessed key ?