add gzip supprot for resources