adding gzip_vary on and svg type for compression
change template to accept an array for the location_custom_cfg making it more flexible