GZIP compression

This section is for posting questions which are not directly related to WYSIWYG Web Builder.
Examples of off topics: web server configuration, hosting, programming related questions, third party scripts.

Note that these questions will generally not be answered by the administrators of this forum.
Post Reply
Trugmaker
 
 
Posts: 196
Joined: Mon Mar 23, 2015 3:11 pm
Location: East Sussex UK
Contact:

GZIP compression

Post by Trugmaker »

Doing a SEO online test, it was recommended that I use GZIP compression. The instruction was to simply enter the code below into my .htaccess file. Is it that simple or am I missing something?

In Apache, enabling output compression is fairly straightforward. Add the following to your .htaccess file:

# 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>
Never complain about getting old, the alternative is far worse!
User avatar
ruel.lago22
 
 
Posts: 59
Joined: Thu Feb 01, 2018 11:32 am

Re: GZIP compression

Post by ruel.lago22 »

Were you able to make it work using this?
User avatar
BaconFries
 
 
Posts: 5327
Joined: Thu Aug 16, 2007 7:32 pm

Re: GZIP compression

Post by BaconFries »

As server related please contact your host for further assistance on this.
Post Reply