added headers to resources and enable gzip on requests