gzip support in htaccess or vb settings or both?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dethfire
    Senior Member
    • Mar 2003
    • 475
    • 3.8.x

    gzip support in htaccess or vb settings or both?

    Is it better to gzip in htaccess like this

    Code:
    <ifModule mod_gzip.c>
      mod_gzip_on Yes
      mod_gzip_dechunk Yes
      mod_gzip_item_include file \.(html?|txt|css|js|pl)$
      mod_gzip_item_include handler ^cgi-script$
      mod_gzip_item_include mime ^text/.*
      mod_gzip_item_include mime ^application/x-javascript.*
      mod_gzip_item_exclude mime ^image/.*
      mod_gzip_item_exclude rspheader ^Content-Encoding:.*gzip.*
    </ifModule>
    Or to not add that and use the vb settings gzip? I found that code online, not sure if it's the best. Why isn't php added to include file list? Also strangely if I disable in vb and delete the above code my site still reports to being gziped.Thanks for the help!
    Last edited by dethfire; Fri 18 Jul '14, 3:43pm.
    http://www.physicsforums.com
  • Wayne Luke
    vBulletin Technical Support Lead
    • Aug 2000
    • 74132

    #2
    The setting in vBulletin will only compress generated code, it will not affect static files like the ones you listed above. You'll have to use both.

    Many servers automatically GZIP though. If your server is doing this, you don't need the setting set to on in the vBulletin control panel. Double compression just wastes server resources and can cause problems in the user's browser. You would have to ask your hosting provider if they use a GZIP handler automatically.
    Translations provided by Google.

    Wayne Luke
    The Rabid Badger - a vBulletin Cloud demonstration site.
    vBulletin 5 API

    Comment

    • dethfire
      Senior Member
      • Mar 2003
      • 475
      • 3.8.x

      #3
      Thanks! I do have mod_gzip installed. I guess I am set then and can disable in vb settings.
      http://www.physicsforums.com

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...