@legend its very tricky to configure magento varnish template in cwp, instead you can use redis cache which will also speed up magento