Transparently compresses responses if set to true.
The server tries minimizing CPU usage by caching compressed files. It adds CompressedFileSuffix suffix to the original file name and tries saving the resulting compressed file under the new file name. So it is advisable to give the server write access to Root and to all inner folders in order to minimze CPU usage when serving compressed responses.
Transparent compression is disabled by default.
Root: "/", GenerateIndexPages: true, Compress: true, AcceptByteRange: true, }
pathRewrite: fs.PathRewrite, generateIndexPages: fs.GenerateIndexPages, compress: fs.Compress, acceptByteRange: fs.AcceptByteRange, cacheDuration: cacheDuration,
Root: ".", GenerateIndexPages: true, Compress: true, } h := fs.NewRequestHandler()