Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

Website and Server Administration Forum


You are currently viewing our Website and Server Administration Forum as a guest. Please register to participate.
Login



Reply
Old 01-06-2012, 07:03 AM Htaccess - gzip?
Nightmaster's Avatar
Average Talker

Posts: 26
Name: Nikola
Location: Serbia
Trades: 0
Hello there.

I used http://gtmetrix.com site for performance report for my site, and it reported me that i should enable gzip for better optimizacion.
I tried to find something about it online, and i added this code to my .htaccess file:
Code:
# compress text, html, javascript, css, xml:
AddOutputFilterByType DEFLATE text/plain
AddOutputFilterByType DEFLATE text/html
AddOutputFilterByType DEFLATE text/xml
AddOutputFilterByType DEFLATE text/css
AddOutputFilterByType DEFLATE application/xml
AddOutputFilterByType DEFLATE application/xhtml+xml
AddOutputFilterByType DEFLATE application/rss+xml
AddOutputFilterByType DEFLATE application/javascript
AddOutputFilterByType DEFLATE application/x-javascript

# Or, compress certain file types by extension:
<files *.html>
SetOutputFilter DEFLATE
</files>
Site works okay for me now, but i just wanted to check if the code is okay and won't couse some errors or issues?
Also, i'm not sure if DEFLATE is okay in this case?

Thanks for advice.
Regards.
Nightmaster is offline
Reply With Quote
View Public Profile Visit Nightmaster's homepage!
 
 
Register now for full access!
Old 01-06-2012, 07:56 AM Re: Htaccess - gzip?
chrishirst's Avatar
Missing! presumed drunk.

Posts: 42,380
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
If it wasn't "working" you would get a HTTP 500 response (Server Error).
__________________
Chris. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 01-12-2012, 03:40 PM Re: Htaccess - gzip?
L a r r y's Avatar
Super Talker

Posts: 103
Name: Larry K
Location: Arizona
Trades: 0
Hey, Nightmaster, thanks for the tip on gtmetrix.com! I optimized a few things, many more to go, and raised my site's grade a bit already.
__________________
Larry
Please login or register to view this content. Registration is FREE
L a r r y is offline
Reply With Quote
View Public Profile Visit L a r r y's homepage!
 
Reply     « Reply to Htaccess - gzip?
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.39566 seconds with 12 queries