Re: Linux Dedicated Server for 5.0 Guide
Also (copy pasting from another post of me):
SC supports gzip HTTP transfer compression. If you tell your fastdl webserver to compress the mime types "text/* audio/* image/* application/octet-stream" this should compress all custom content (application/octet-stream is used for files with unkown mime types like wad/bsp/mdl assuming you have not added any custom filetype/mime associations). Also use a reasonable minimum filesize (like only compress files >4KiB). mod_deflate for lighttpd or apache can do this (on the fly compression). But note that compression uses CPU power, especially when the webserver is running on the same host as the gameserver (think 20 players on mapchange to a new map with loads of content). Compression level also matters. Traffic-wise with such a configuration it is about the same as fastdl on Source games, just that gzip instead of bzip2 is used.
Re: Linux Dedicated Server for 5.0 Guide
Quote:
Originally Posted by
nico
Also (copy pasting from another post of me):
SC supports gzip HTTP transfer compression. If you tell your fastdl webserver to compress the mime types "text/* audio/* image/* application/octet-stream" this should compress all custom content (application/octet-stream is used for files with unkown mime types like wad/bsp/mdl assuming you have not added any custom filetype/mime associations). Also use a reasonable minimum filesize (like only compress files >4KiB). mod_deflate for lighttpd or apache can do this (on the fly compression). But note that compression uses CPU power, especially when the webserver is running on the same host as the gameserver (think 20 players on mapchange to a new map with loads of content). Compression level also matters. Traffic-wise with such a configuration it is about the same as fastdl on Source games, just that gzip instead of bzip2 is used.
A while ago I made a guide for a few friends to try, you can use static gzip instead of the on-the-fly compression which causes high cpu usage.
If anyone is willing to try, let me know if it works: https://github.com/R4to0/scstuff/wik...oad-in-GoldSrc
PS: This is incompatible with CheckSpelling Apache module (triggers HTTP 300 multiple choices), but it works with RewriteEngine stuff (requires regex mapping to be set in the apache webserver conf file)