1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Enable compression on xenForo elements

Discussion in 'XenForo Questions and Support' started by Bonsai Coder, Feb 12, 2015.

  1. Bonsai Coder

    Bonsai Coder Active Member

  2. Xon

    Xon Well-Known Member

    This is a webserver thing to compress javascript files as they are sent.

    For nginx a stanza such as:

    Code:
    gzip_types text/plain text/css application/json application/x-javascript text/xml application/xml application/xml+rss text/javascript application/javascript text/x-js "text/javascript; charset=UTF-8" "text/html; charset=UTF-8";
    
    Should catch the relevant mime-types that can be compressed from an XF install.
     
  3. Bonsai Coder

    Bonsai Coder Active Member

    Thank you! Just had to run EasyApache to compile in mod_deflate. It's working like a charm! Thank you for pointing me in the right direction!
     

Share This Page