Jump to content

Compression / image expiration

Recommended Posts

  • 1 month later...
  • Replies 61
  • Created
  • Last Reply

Good topic. Have a few questions because am trying to optimize for speed/loading. Here's what I have but not sure its configured correctly or if there are conflicts.

PHP Version 7.0.14

MySQL 5.6.34 

memcache 3.0.9-dev 

Zend OPcache - not sure if this is configured properly

zlib.output_compression = On

Mod_pagespeed - not sure if this is configured properly

Cloudflare Free - speed section unchecked for CSS and JS because was causing template issues.

I'm almost thinking that I'm throwing too much at it...

Link to comment
Share on other sites

Your setup has the basics software for a good performance but just installing them doesn't mean that all will work super fast.....

They need to be configured and optimized according to your server power and user needs.

Also system/kernel can be tweaked and help a lot :-)

Link to comment
Share on other sites

you can try some thing like this 2 this is what i use to get some of my files compress

and you can add it inside your htaccess file where you have you themes

If your server mod_deflate off, you can compress your JS and CSS following the instructions here.
This will improve the speed of your site.

im going to try that with my site


<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



Link to comment
Share on other sites

I've been using this should I use something like as mentioned above or is this good enough?

FileETag None
<IfModule mod_deflate.c> 
<filesMatch ".(css|js|x?html?|php)$">
    SetOutputFilter DEFLATE
<IfModule mod_expires.c>
Link to comment
Share on other sites

In general it's not needed to go cdn.
You can do this by native IPB functionality. You can do some subdomains for js/css and also for gallery images. Thanks to that You can divide files into different host (host by name, but those can be located on same IP, same server). Any subdomain can have cache for static files.
Thanks to that we have GTmetrix 95-85 - depending on site.

Link to comment
Share on other sites

36 minutes ago, EmpireKickass said:

there is an option on my server to go to Optimize Website then enable Compress All Content

So does mine. After selecting that option, I seem to notice that it is much quicker to load new pages, though I haven't conducted actual speed tests.

Link to comment
Share on other sites


This topic is now archived and is closed to further replies.

  • Recently Browsing   0 members

    • No registered users viewing this page.

  • Create New...