It would be nice if the DiskFileService had an option whereby if the client requests a file, and a pre-compressed .gz version exists and the client specifies that it can accept gzip streams via the Accept-Encoding: gzip header, that it serve that instead.
So if the client requested SomeScript.js and SomeScript.js.gz existed, the .gz version would be served up instead with the Content-Encoding: gzip header to match.
I have created this issue with the intent of implementing this myself.
It would be nice if the
DiskFileService
had an option whereby if the client requests a file, and a pre-compressed .gz version exists and the client specifies that it can accept gzip streams via theAccept-Encoding: gzip
header, that it serve that instead.So if the client requested
SomeScript.js
andSomeScript.js.gz
existed, the .gz version would be served up instead with theContent-Encoding: gzip
header to match.I have created this issue with the intent of implementing this myself.