How to serve static compressed files

Previous Topic Next Topic
classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
Report Content as Inappropriate

How to serve static compressed files


I need, for my application, to serve some svg and json files, they are served statically and because I also need to reduce their size I would like to store them already compressed.
The good news is that firefox support both brotli and gzip for http compression, since the first one is really efficient (more than lzip, gzip or xz with max setting), I plan to brotli-compress all my files and save disk and bandwidth by serving them as this, with only one decompression made at the end. Is is even possible ? and how could I do this with cherrypy ? Or may be with gzip ?


You received this message because you are subscribed to the Google Groups "cherrypy-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [hidden email].
To post to this group, send email to [hidden email].
Visit this group at https://groups.google.com/group/cherrypy-users.
For more options, visit https://groups.google.com/d/optout.