Say in my http fileserver, I have /static/foo.tar.gz
. Should my fileserver be serving it as /static/foo.tar
with content-encoding: gzip
always or should it be served as /static/foo.tar.gz
with content-type: gzip
?
Change foo.tar.gz
with any file that ends in .gz
. My question boils down to whether or not every .gz
file should be served with content-encoding: gzip
? I know it's fine for html/css/js but I'm wondering if there are some files, where i should be serving them with content-type: gzip
? As in, why not just always use content-encoding: gzip
and strip off the extension?
)
--
You received this message because you are subscribed to the Google Groups "golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email to golang-nuts...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
On Jan 14, 2017, at 10:57 AM, Anmol Sethi <an...@aubble.com> wrote:
While it is unexpected, what is wrong with just serving a tar file and redirecting a foo.gz request to a foo request? Why should a user want to have a .gz file after downloading?