MyBB Community Forums

Full Version: .htaccess <IfModule mod_filter.c> set wrong, no gzip for js
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
<IfModule mod_deflate.c>
	AddOutputFilterByType DEFLATE application/x-javascript text/css text/html text/xml
</IfModule>
Is not working, js files are not gziped. I am not sure is it server depened, it is not working on my server.

Changing it to
    <IfModule mod_filter.c>
        AddOutputFilterByType DEFLATE application/atom+xml \
                                      application/javascript \
                                      application/json \
                                      application/rss+xml \
                                      application/vnd.ms-fontobject \
                                      application/x-font-ttf \
                                      application/x-web-app-manifest+json \
                                      application/xhtml+xml \
                                      application/xml \
                                      font/opentype \
                                      image/svg+xml \
                                      image/x-icon \
                                      text/css \
                                      text/html \
                                      text/plain \
                                      text/x-component \
                                      text/xml
    </IfModule>

Helped. Seems to be "application/javascript", not "application/x-javascript".

html5-boilerplate -- https://github.com/h5bp/html5-boilerplat.../.htaccess
Besides looking into headers you can check it here -- http://www.whatsmyip.org/http-compression-test/

Jquery and others js are too big to be downloaded notgziped for every user (without cache). It took me a while to figure out why my forum is slow comparing to other parts of site. I didn't thought that my root htaccess' mod_filter is overwritten here. Changing this speeds things a lot.
That is strange.

Where I can get it from? I definitively didn't edit it.

yep, it is from very old version, I thought it was downloaded from 1.8.00.
^ if you are using MyBB's internal SEF URLs then you can use content of above referred htaccess.txt from GitHub
Has this been fixed or was it a bug? Seems more like an issue with the .htaccess than with our default version.
^ yes, it is not related to MyBB.
topic moved from bugs section
Not exactly a bug, but we could add more MIMEs to the exemplary htaccess.txt, I guess (moved back).
Can we stop moving threads around, I'm confused Toungue

So this would be part of those ".htaccess improvements" that were already discussed internally?
(2015-06-25, 12:51 PM)Jones H Wrote: [ -> ]So this would be part of those ".htaccess improvements"

Apparently.
I'm pushing this so we don't forget this.
Pages: 1 2