add headers support in embed cache