]> git.kaiwu.me - haproxy.git/commitdiff
MINOR: filters: Move cache-store after decompression in global classes list
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 19 Oct 2026 09:21:41 +0000 (11:21 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Mon, 19 Oct 2026 19:54:04 +0000 (21:54 +0200)
It is more logical to have the decompression class first, event on the
global list, because by default, the decompression is always performed
before the caching. The better to have a global order reflecting as much as
possible the channels order.

src/filters.c

index ba5d1ae9f1f998bdb073e7b1a64455e7f21448b7..b244aa63b871df67939841e37c1292ab2ed469a8 100644 (file)
@@ -3739,9 +3739,9 @@ static void filter_init_classes(void)
         * filter_place_class() on FLT_SIDE_GLOBAL.
         */
        LIST_APPEND(&global_filter_classes, &flt_trace_cls.global.list);
-       LIST_APPEND(&global_filter_classes, &flt_cache_store_cls.global.list);
        LIST_APPEND(&global_filter_classes, &flt_decomp_req_cls.global.list);
        LIST_APPEND(&global_filter_classes, &flt_decomp_res_cls.global.list);
+       LIST_APPEND(&global_filter_classes, &flt_cache_store_cls.global.list);
 #if defined(USE_SPOE)
        LIST_APPEND(&global_filter_classes, &flt_spoe_cls.global.list);
 #endif