MyBB Community Forums

Full Version: [B] mod_deflate css and javascript don't deflate
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Pages: 1 2
<FilesMatch "\\.(js|css|html|htm|php|xml)$">
SetOutputFilter DEFLATE
</FilesMatch>

I believe that needs to be added to the htaccess.txt file otherwise mod_deflate isn't working. On community.mybboard.net it doesn't work as proof of concept.

You can use this site to test:
http://websiteoptimization.com/services/analyze/

Also try application/javascript to the existing AddOutputFilterByType line.

This feature should be tightened up a bit to make sure it works since prototype is huge and loaded with every page.
(2009-01-14, 09:45 PM)Ryan Gordon Wrote: [ -> ]Why won't it work by mime type? Why we do we have to do it as a file extension? Sounds like a bug with the directive, not MyBB.

Quoted from here: http://community.mybboard.net/thread-43488.html
Well the way your htaccess is written doesn't work on 3 hosts so far. My box, Mybb's box, and Dreamhost. I can check Servage too if you would like.

Why it doesn't work exactly I am not 100% sure. It just doesn't work. I am reporting a non-functioning feature of mybb. It's your code in htaccess. Feel free to ignore me, remove it, or fix it. All up to you. I just like to report things that don't work.

Thanks anyways.
(2009-01-14, 10:23 PM)labrocca Wrote: [ -> ]It just doesn't work. I am reporting a non-functioning feature of mybb.

And I am just asking a question...
Quote:Why won't it work by mime type?

Well it's a good question really. It could have to do with the headers being sent maybe? I spent some time looking around to find what the problem exactly was. For me I get all the css, php, and js but only after I made adjustments to my httpd conf file. From htaccess with the above changes I was able to get the javascript too but not the css. So..I looked for a solution that solved this completely but haven't really found one yet.
So, I'm not sure what the "Proper" fix is for this
I guess for now we can just sit on this. At least it's noted and maybe one day we can officially get it fixed. I just don't have the time to bust this out. I know you're busy too and well...this is probably low priority. I understand. Maybe let this sit for a bit an someone with more knowledge than us can work it out.
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group
Okay, so I applied your "fix" here but http://www.websiteoptimization.com/services/analyze/ still says the same things.

I'm beginning to think that this wasn't really a MyBB bug after all.
At hackforums.net I get results where all files are optimized. However I don't have any .htaccess edits and that's a new server. So not sure why Mybboard doesn't have compression for js or css. I don't know what different configs exist here.

Something doesn't seem to mesh and you're right. It may not be an actual bug with mybb just a feature that's not working properly for some reason. It may require server changes for this to be fixed. I don't know.

Here are a couple related pages I found:
http://stackoverflow.com/questions/48555...p-disabled

http://www.askapache.com/htaccess/apache...ssion.html

Most of what I am reading states that a filematch directive is needed for js and css. If it gets figured out let me know.
Pages: 1 2