Backport from master to Firefly(KeyValueStore)

Fix #9223

The bug #9223 reported is a fixed via adding Header Cacher, so it will introduce serval commits to solve it.