Jump to content

Compression / image expiration


Recommended Posts

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

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...

Posted

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 :-)

Posted
1 hour ago, AlexWebsites said:

zlib.output_compression = On

 

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.

Posted

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
</IfModule>

 

58839784a5c39_testgood.thumb.png.7286062631ca8f063151aa9e01541fb6.png

Posted

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
  </filesMatch>
</IfModule>
<IfModule mod_expires.c>
Posted

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.

Posted
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.

Archived

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

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...