Results 1 to 7 of 7
  1. #1
    Join Date
    Jan 2018
    Posts
    127
    Plugin Contributions
    0

    Default GZip Compression

    Hi how can i enale GZip Compression to speed up my website? Thanks

    mas-uk.com

  2. #2
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    1,401
    Plugin Contributions
    2

    Default Re: GZip Compression

    you can try to add the following lines to your .htaccess file:

    Code:
    <IfModule mod_deflate.c>
      # Compress HTML, CSS, JavaScript, Text, XML and fonts
      AddOutputFilterByType DEFLATE application/javascript
      AddOutputFilterByType DEFLATE application/rss+xml
      AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
      AddOutputFilterByType DEFLATE application/x-font
      AddOutputFilterByType DEFLATE application/x-font-opentype
      AddOutputFilterByType DEFLATE application/x-font-otf
      AddOutputFilterByType DEFLATE application/x-font-truetype
      AddOutputFilterByType DEFLATE application/x-font-ttf
      AddOutputFilterByType DEFLATE application/x-javascript
      AddOutputFilterByType DEFLATE application/xhtml+xml
      AddOutputFilterByType DEFLATE application/xml
      AddOutputFilterByType DEFLATE font/opentype
      AddOutputFilterByType DEFLATE font/otf
      AddOutputFilterByType DEFLATE font/ttf
      AddOutputFilterByType DEFLATE image/svg+xml
      AddOutputFilterByType DEFLATE image/x-icon
      AddOutputFilterByType DEFLATE text/css
      AddOutputFilterByType DEFLATE text/html
      AddOutputFilterByType DEFLATE text/javascript
      AddOutputFilterByType DEFLATE text/plain
      AddOutputFilterByType DEFLATE text/xml
    
      # Remove browser bugs (only needed for really old browsers)
      BrowserMatch ^Mozilla/4 gzip-only-text/html
      BrowserMatch ^Mozilla/4\.0[678] no-gzip
      BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
      Header append Vary User-Agent
    </IfModule>
    best.
    no good deed goes unpunished. help out with the green....

  3. #3
    Join Date
    Sep 2003
    Location
    Ohio
    Posts
    69,474
    Plugin Contributions
    6

    Default Re: GZip Compression

    There is a setting in your Admin under the Configuration ... GZip Compression settings ... to turn it on ...
    Linda McGrath
    If you have to think ... you haven't been zenned ...

    Did YOU buy the Zen Cart Team a cup of coffee and a donut today? Just click here to support the Zen Cart Team!!

    Are you using the latest? Perhaps you've a problem that's fixed in the latest version: [Upgrade today: v1.5.5]
    Officially PayPal-Certified! Just click here

    Try our Zen Cart Recommended Services - Hosting, Payment and more ...
    Signup for our Announcements Forums to stay up to date on important changes and updates!

  4. #4
    Join Date
    Jan 2018
    Posts
    127
    Plugin Contributions
    0

    Default Re: GZip Compression

    Quote Originally Posted by carlwhat View Post
    you can try to add the following lines to your .htaccess file:

    Code:
    <IfModule mod_deflate.c>
      # Compress HTML, CSS, JavaScript, Text, XML and fonts
      AddOutputFilterByType DEFLATE application/javascript
      AddOutputFilterByType DEFLATE application/rss+xml
      AddOutputFilterByType DEFLATE application/vnd.ms-fontobject
      AddOutputFilterByType DEFLATE application/x-font
      AddOutputFilterByType DEFLATE application/x-font-opentype
      AddOutputFilterByType DEFLATE application/x-font-otf
      AddOutputFilterByType DEFLATE application/x-font-truetype
      AddOutputFilterByType DEFLATE application/x-font-ttf
      AddOutputFilterByType DEFLATE application/x-javascript
      AddOutputFilterByType DEFLATE application/xhtml+xml
      AddOutputFilterByType DEFLATE application/xml
      AddOutputFilterByType DEFLATE font/opentype
      AddOutputFilterByType DEFLATE font/otf
      AddOutputFilterByType DEFLATE font/ttf
      AddOutputFilterByType DEFLATE image/svg+xml
      AddOutputFilterByType DEFLATE image/x-icon
      AddOutputFilterByType DEFLATE text/css
      AddOutputFilterByType DEFLATE text/html
      AddOutputFilterByType DEFLATE text/javascript
      AddOutputFilterByType DEFLATE text/plain
      AddOutputFilterByType DEFLATE text/xml
    
      # Remove browser bugs (only needed for really old browsers)
      BrowserMatch ^Mozilla/4 gzip-only-text/html
      BrowserMatch ^Mozilla/4\.0[678] no-gzip
      BrowserMatch \bMSIE !no-gzip !gzip-only-text/html
      Header append Vary User-Agent
    </IfModule>
    best.
    I cant find my .htacess file

  5. #5
    Join Date
    Jan 2018
    Posts
    127
    Plugin Contributions
    0

    Default Re: GZip Compression

    Quote Originally Posted by Ajeh View Post
    There is a setting in your Admin under the Configuration ... GZip Compression settings ... to turn it on ...
    Already on

  6. #6
    Join Date
    Nov 2005
    Location
    los angeles
    Posts
    1,401
    Plugin Contributions
    2

    Default Re: GZip Compression

    weird if you have it turned on...

    .htaccess is NOT part of a base ZC install. plenty of info on the web out there on where it goes and how to create one. see:

    https://goo.gl/j4vsBA

    i'm guessing you are trying to get your site faster. look at the report here:

    https://gtmetrix.com/reports/mas-uk.com/2Si0enA9

    they provide plenty of information to get your speed better. caching is your friend.

    good luck.
    no good deed goes unpunished. help out with the green....

  7. #7
    Join Date
    Jan 2018
    Posts
    127
    Plugin Contributions
    0

    Default Re: GZip Compression

    Quote Originally Posted by JakeLawless View Post
    Already on
    Thank you. But im just not sure how to 'Specify a cache validator' or 'Leverage browser caching'

 

 

Similar Threads

  1. GZip compression
    By I wish I could in forum Installing on a Linux/Unix Server
    Replies: 1
    Last Post: 27 Mar 2011, 05:27 AM
  2. GZip Compression.. what is it exactly?
    By christayah in forum Customization from the Admin
    Replies: 15
    Last Post: 10 Oct 2009, 01:58 PM
  3. Gzip compression lost site
    By allstarlab in forum Customization from the Admin
    Replies: 2
    Last Post: 13 Dec 2008, 03:00 AM
  4. GZip Compression
    By cs_jono in forum General Questions
    Replies: 7
    Last Post: 18 Jun 2008, 04:13 AM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR