Fix caching and add gzip