Added simple caching (stored gzipped) and modified gzip output (send unzipped when browser does not support gzip)