Jump to content

Compression / image expiration


Recommended Posts

  • Replies 61
  • Created
  • Last Reply
Posted
3 hours ago, Adlago said:

Well no, not bogus this test. I think that the test GtMetrix is deceptively good.

Best online test has Dareboost. Google Developers test It is very close.

See you to your Dareboost test and you will see.

https://www.dareboost.com/en/report/5799b8fa0cf27e4f611b7a9c

 
 

The software is so powerful, it's never going to "lightning" fast.  If you're concerned about it -- just make a static page -- instead of the forums for your front page. ^_^  But as much powerful as the forums are -- it's pretty fast on my end. ^_^  The main thing -- do your readers find it fast? ^_^  The main thing isn't pleasing Google -- it's pleasing your users.

Posted
30 minutes ago, marklcfc said:

I see Defer parsing of JavaScript and Specify image dimensions are still Grade F (0) though. Does anything help with this?

At this stage it does not slow down your site. Try reduction of external resources - which of them as possible download and upload in a folder on your server. Load them from your server.

Posted

It's difficult for me to change that as that is the advertising setup. I've read that innodb is recommended now over myisam, how much of a difference would I see by changing database tables? concerned about data loss with that though.

Posted
8 hours ago, ASTRAPI said:

The fact that you are using an .htaccess file is overloading your server with many extra requests making your server slow :(

http://wiki.nginx.org/LikeApache-htaccess

So even if you satisfy Google's metrics then you will not have the maximum performance :(

 

Wiki... It is frivolous argument - tale for the layman. Sorry, but I expect you professional response.:unsure:

Posted
2 minutes ago, NoGi said:

So no issues with CloudFlare and IPS4? I am currently looking at using a CDN as well.

Share the link to your site - I'm curious to test CDN and CloudFlare.

Posted
23 minutes ago, ASTRAPI said:

@Adlago

Do you disagree with that?

Using .htaccess is not good for your server performance?

Or do you mean something else?

Sorry for my bad english :(

If this is not good for performance server - host companies will not offer it. But if good use is htaccess file "likes" from the browser client - what's the problem?

Posted
Quote

If this is not good for performance server - host companies will not offer it.

.htaccess is not something a hosting company offer to any client.It is a choice of you if you want to use Apache and .htaccess or not.

 

Quote

But if good use is htaccess file "likes" from the browser client - what's the problem?

There is no such thing good use or bad use for .htaccess related to what i say.

Yes if you have bad rules inside then yes is not good use and can cause issues.

If you use good rules then you satisfy the Google but that doesn't change the extra reads.

Check this sample:

Server Requests / Hour  :  576,000

Nginx will need : 576,000 reads

Apache will need : 2,304,000 reads

 

If you want to use it then is fine but if users ask for performance i must let them know about it.

I don't force anyone to not use .htaccess as i just let them know with the link that i post above that is no good for performance ^_^

 

Posted

That sounds just like an advertisement for nginx server - I do not accept.

23 minutes ago, ASTRAPI said:

... but if users ask for performance i must let them know about it.

 

Users do not care about performance server, only speed sites they visit

Posted

 

Quote

Users do not care about performance server, only speed sites they visit

The speed of a site is related to the server and the hardware/software that is uses ^_^

Posted
On 7/29/2016 at 7:37 AM, Adlago said:

Share the link to your site - I'm curious to test CDN and CloudFlare.

I'm not using it, asking the question whether it works well with CloudFlare or not as I am considering using it.

  • 3 months later...
Posted
On 7/28/2016 at 11:41 AM, Adlago said:

Step by Step :)

Add in your htaccess file:


FileETag None
<IfModule mod_deflate.c> 
<filesMatch ".(css|js|x?html?|php)$">
    SetOutputFilter DEFLATE
  </filesMatch>
</IfModule>
<IfModule mod_expires.c>
ExpiresActive On
ExpiresDefault "now plus 1 week"
ExpiresByType image/gif "access plus 1 month"
ExpiresByType image/jpg "access plus 1 month"
ExpiresByType image/jpeg "access plus 1 year"
ExpiresByType image/png "access plus 1 month"
ExpiresByType text/css "access plus 1 month"
ExpiresByType text/javascript "access plus 1 week"
ExpiresByType application/javascript "access plus 1 week"
ExpiresByType application/x-javascript "access plus 1 week"
ExpiresByType application/x-shockwave-flash "access plus 1 week"
ExpiresByType video/x-flv "access plus 1 week"
ExpiresByType application/pdf "access plus 1 week"
ExpiresByType text/xml "access plus 1 month"
ExpiresByType image/x-icon "access plus 1 year"
ExpiresByType application/font-woff "access plus 1 month"
ExpiresByType application/x-font-woff "access plus 1 month"
ExpiresByType font/woff "access plus 1 month"
ExpiresByType application/font-woff2 "access plus 1 year"
ExpiresByType application/vnd.ms-fontobject "access plus 1 month"
ExpiresByType application/x-font-ttf "access plus 1 month"
ExpiresByType font/opentype "access plus 1 month"
ExpiresByType image/svg+xml "access plus 1 month"
</IfModule>

 

This clashes with opcache. I believe its the mod_expires.c part as I thought it was the deflate.c but then I tested it with just expires and I was having the same issues which are - members not seeing updated pages, showing as logged out - need to refresh to see the latest topic list and show as logged in etc.

Posted

I've been using the one I posted above but without ExpiresDefault "now plus 1 week" as it clashed with opcache, I'm still only 78% / 53% on gtmetrix.

Archived

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

  • Recently Browsing   0 members

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