Server speed test tool - GTmetrix.com

Re: Server speed test tool - GTmetrix.com

[QUOTE=William Godin;61926]A “Expires” header is a timestamp sent by your web server to your visitors browser. It instructs a browser to keep a specific piece of data in its cache until the time set by the header is reached. It can be tied to almost any kind of data sent by your server (images, stylesheets, javascripts, web pages).

You could, for example, tell browsers to re-download your logo image only once per month. So, if you have a million page views from returning visits in a month, you just saved your server a theoretical million hits (and about 19 gigabytes of bandwidth if your logo weights 20 kilobytes).

When properly set, it can be a HUGE performance booster and bandwidth saver.

Here’s some bedtime reading if you want to know more: http://www.mnot.net/cache_docs/[/QUOTE]

Thanks for the info, I wanted to find out more about that actually. Going to test that on some of my sites. It seems to be a excellent way of speeding it up.

Oh and sorry about you having to do 2 posts. “new” users have to have made a few posts before they can include a link in their posts… yours got stuck waiting for approval. Sorry about that.

Re: Server speed test tool - GTmetrix.com

No problem, Bjorn. It kinda is my fault! I have been a lazy contributor.
I intend to do better this year. :slight_smile:

By the way, how is everyone keeping tab on their website performance? We’ve been using the Apdex score for a while, and it changed our lives.

Re: Server speed test tool - GTmetrix.com

What a great tool indeed. Thanks Bjorn!

I’ll have to look into this “Add expires headers” tactic a little more too. I just moved to a dedicated server and anything to save bandwidth is certainly good. Thanks for the info William Godin.

Re: Server speed test tool - GTmetrix.com

[QUOTE=William Godin;61942]No problem, Bjorn. It kinda is my fault! I have been a lazy contributor.
I intend to do better this year. :slight_smile:

By the way, how is everyone keeping tab on their website performance? We’ve been using the Apdex score for a while, and it changed our lives.[/QUOTE]

Damn, Apdex looks very complicated! You mean as in overall performance including sales?

Re: Server speed test tool - GTmetrix.com

That’s interesting… I hadn’t heard of it before. Are you using a particular monitoring service to obtain that score?

Re: Server speed test tool - GTmetrix.com

[QUOTE=William Godin;61926]A “Expires” header is a timestamp sent by your web server to your visitors browser. It instructs a browser to keep a specific piece of data in its cache until the time set by the header is reached. It can be tied to almost any kind of data sent by your server (images, stylesheets, javascripts, web pages).

You could, for example, tell browsers to re-download your logo image only once per month. So, if you have a million page views from returning visits in a month, you just saved your server a theoretical million hits (and about 19 gigabytes of bandwidth if your logo weights 20 kilobytes).

When properly set, it can be a HUGE performance booster and bandwidth saver.

Here’s some bedtime reading if you want to know more: http://www.mnot.net/cache_docs/[/QUOTE]

I’ve started to use Expire in headers. I’m serving java and design images from a subdomain and with a 1 year expire on them. But I can update them by changing what folder I store them in and a htaccess rewrites makes sure it still works.

But not sure it’s much different, does the site flicker to anyone:

http://www.gaydemon.com

For example, the logo is now stored:

http://static.gaydemon.com/r1/images/logo.gif

Re: Server speed test tool - GTmetrix.com

oh wow, i did not know about that expires stuff…thanks!

Re: Server speed test tool - GTmetrix.com

[QUOTE=gaydemon;62097]But not sure it’s much different, does the site flicker to anyone:

http://www.gaydemon.com

[/QUOTE]

its not flickering on me

Re: Server speed test tool - GTmetrix.com

Gay Porn Pig performs pretty badly on speed tests so we will be investing a bit in optimising it. Quite a bit will probably wait until we move it over to a new CMS (probably Gossamer based) - Joomla and some of the extensions seem too resource intensive.

Re: Server speed test tool - GTmetrix.com

Thanks! It’s fully optimized now, and max on most but havent got a CDN yet:

http://gtmetrix.com/reports/www.gaydemon.com/8A2GrKA0

I bet Google will still tell me the site is slow.

Re: Server speed test tool - GTmetrix.com

Expires headers can be a pain in the ass if you have a dynamic site that changes after someone logs in. Take this site for example… How would you like it if you got a page that looked like you weren’t logged in after you had actually logged in? That’s the sort of thing expires headers can do to you. It’s even worse if there’s a proxy server involved since the proxy server can cache a page and present it to multiple users - so you may get someone else’s version of the page. They’ve been the bane of my existence at times.

It gets more complicated since “Expires” isn’t the only thing you need to set. “Last-Modified”, “Cache-Control”, and “Pragma” are also HTTP headers that can affect the page caching. And on top of it all, there are HTML meta tag equivalents of each of them - and if they conflict you really have no clue what the browser will do… (Yes, that’s up to 8 elements that all have to be in perfect sync).

Bjorn - I wouldn’t recommend doing a 1 year expires on your Javascript. What if you want to change it? I’d do a few hours at most so all the page loads in a particular session just hit the Javascript once. That’s really the point. The user’s browser cache won’t hold onto the file for a year, so there’s no point in caching for a year.

Also, think about bang for the buck… Text files (HTML, JS, CSS) are small and highly compressible. Images are much better candidates for caching since they take a lot more bandwidth, though in the context of how fast does a particular page load, the overhead of retrieving the JS and CSS more than once can be a small factor. (More important is to make sure they’re not on a different host that requires another DNS lookup and connection).

Re: Server speed test tool - GTmetrix.com

[QUOTE=rawTOP;62202]
Bjorn - I wouldn’t recommend doing a 1 year expires on your Javascript. What if you want to change it? I’d do a few hours at most so all the page loads in a particular session just hit the Javascript once. That’s really the point. The user’s browser cache won’t hold onto the file for a year, so there’s no point in caching for a year…[/QUOTE]

Ah but there is a very simple way of solving the problem. I only use it for images and scripts that are used on all pages and I have a domain alias + htaccess setup for:

static.gaydemon.com

For example I tell the browser to find my logo at:

http://static.gaydemon.com/r1/images/logo.gif

If i have to change the logo, I simply change the URL to:

http://static.gaydemon.com/r2/images/logo.gif (note the r folder)

Forcing it to refresh. It’s still the same file and location but just a simple htaccess rewrite that points that alias to the real location. Same with Java.:slight_smile:

Re: Server speed test tool - GTmetrix.com

It’s crazy hard to compute Apdex scorings! For the sake of our sanity, we’ve outsourced that part. (We’re using NewRelic)

Apdex doesn’t calculate business performance per se (sales, etc…). It just takes those hard-to-read technical metrics and transforms them into a measure of user satisfaction.

It basically tells you if the performance of your websites is a source of frustration for your customers in a manner us, non-über-geeks, can understand it.

Happy customers tend to be more loyal. And I just looove loyal customers. lol

Re: Server speed test tool - GTmetrix.com

Sorry if my last posts comes a bit out of no where. I completely missed the second page of replies… It was a reply to Bjorn and RocketJD.

Re: Server speed test tool - GTmetrix.com

[QUOTE=gaydemon;62223]Ah but there is a very simple way of solving the problem. I only use it for images and scripts that are used on all pages and I have a domain alias + htaccess setup for:

static.gaydemon.com

Forcing it to refresh. It’s still the same file and location but just a simple htaccess rewrite that points that alias to the real location. Same with Java.:)[/QUOTE]

The additional dns lookup and http connection is probably hurting you more than you’re saving with the expires header. Putting everthing on www will make things a bit faster. You can still do your rewrite trick on a /static/ directory instead of a subomain.

Re: Server speed test tool - GTmetrix.com

That’s a good point! I’ll have to check that!

Re: Server speed test tool - GTmetrix.com

[QUOTE=William Godin;62232]It’s crazy hard to compute Apdex scorings! For the sake of our sanity, we’ve outsourced that part. (We’re using NewRelic)

Apdex doesn’t calculate business performance per se (sales, etc…). It just takes those hard-to-read technical metrics and transforms them into a measure of user satisfaction.

It basically tells you if the performance of your websites is a source of frustration for your customers in a manner us, non-über-geeks, can understand it.

Happy customers tend to be more loyal. And I just looove loyal customers. lol[/QUOTE]

It sounds really interesting, I’m a sucker for efficiency and stats… What do you need to use it? What data is necessary to get a good “picture” or to be able to use this way of calculating performance?

Re: Server speed test tool - GTmetrix.com

Sure, there are probably a quite a few providers out there who can compute Apdex for you. I’m using NewRelic RPM, but they require your website to be built in Ruby (or in Java I believe).

It all depends on the architecture of your websites. And if you can’t find a provider, and you have access to programmers, they may be able to implement it for you.

That seems to be the latest revision of Apdex specs: http://www.apdex.org/documents/ApdexTechnicalSpecificationV11_000.pdf

Re: Server speed test tool - GTmetrix.com

This tool is great! I will definitely be making some changes on BentleyRace. Thanks guys!

Re: Server speed test tool - GTmetrix.com

What I found makes the most difference that you can actually see is to use parrallele downloads. Browsers can only request 2 connections per URL at any time. So I’ve setup that my CSS and Java files sits on www.gaydemon.com with cookies and no expiration.

And then Images used for the layout is on static.gaydemon.com.

That way CSS and java lads independently of images and the layout loads better.