You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for providing this useful middleware first of all. I'm wondering if the Static files from http.ServeFile method is also supported. Especially,
It would also be 'nice to have' if the http.ServeFile method would check for the presence of xxx.gz and serve it if present and the accept header includes gzip. This is a trick that nginx does and it greatly accelerates the serving of static css, js etc files because they can be compressed just once during the build process. There's the added benefit too that they are smaller files to read, as well as needing fewer bytes on the wire
thanks
The text was updated successfully, but these errors were encountered:
nanmu42
changed the title
Static files from ServeFile
Serve precompressed static files from ServeFile
May 21, 2020
nanmu42
changed the title
Serve precompressed static files from ServeFile
Add support for serving precompressed static files from ServeFile
May 21, 2020
Thanks for providing this useful middleware first of all. I'm wondering if the Static files from
http.ServeFile
method is also supported. Especially,It would also be 'nice to have' if the http.ServeFile method would check for the presence of xxx.gz and serve it if present and the accept header includes gzip. This is a trick that nginx does and it greatly accelerates the serving of static css, js etc files because they can be compressed just once during the build process. There's the added benefit too that they are smaller files to read, as well as needing fewer bytes on the wire
thanks
The text was updated successfully, but these errors were encountered: