Fix DatasourceCache compress encoding. See merge request !3426 (cherry picked from commit 43ba399e) 8f592f93 Fix DatasourceCache compress encoding.