# Settings for CDN, GZip, Header Expires for BEtter Yslow

**URL:** <https://www.ruby-forum.com/t/settings-for-cdn-gzip-header-expires-for-better-yslow/163320>\
**Category:** Rails\
**Created:** [March 19, 2009, 8:27am UTC](https://www.ruby-forum.com/t/settings-for-cdn-gzip-header-expires-for-better-yslow/163320 "2009-03-19T08:27:27Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![ankitparekh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Post date:** [March 19, 2009, 8:27am UTC](https://www.ruby-forum.com/t/settings-for-cdn-gzip-header-expires-for-better-yslow/163320/1 "2009-03-19T08:27:27Z")

</div>

Hi

On my website i m getting B Grade with 87 points. Now i want to make it  
A and there is a scope to do that.

I have added Google Analytics code which is y my gzip component and  
header expire grade goes to B from A. I need to use Google Analytics so  
cant i set header expires and gzip that?

Another thing is that CDN is not something for a small website. So isnt  
there a way out where we can set CDN as our domain itself. So that we  
get a better grade?

Let me know if there is a way out.

Thanks

---

<div class="post-metadata">

**Author:** ![ankitparekh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Post date:** [March 19, 2009, 8:42am UTC](https://www.ruby-forum.com/t/settings-for-cdn-gzip-header-expires-for-better-yslow/163320/2 "2009-03-19T08:42:37Z")

</div>

For a CDN I recommend Amazon Cloudfront. Super simple to setup and  
use.

> **[Low-Latency Content Delivery Network (CDN) - Amazon CloudFront - Amazon Web...](https://aws.amazon.com/cloudfront/)**
>
> Amazon CloudFront is a content delivery network (CDN) service that helps you distribute your static and dynamic content quickly and reliably with high speed performance, security, and developer ease-of-use.

On Mar 19, 3:27 am, Ankit P. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![ankitparekh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Post date:** [March 19, 2009, 9:23am UTC](https://www.ruby-forum.com/t/settings-for-cdn-gzip-header-expires-for-better-yslow/163320/3 "2009-03-19T09:23:46Z")

</div>

OH just noticed. In this forum itself they have added analytics code  
still they r getting A grade.

How they have done it? They are using litespeed server and i m using  
nginx thats the only diff.

---

<div class="post-metadata">

**Author:** ![ankitparekh](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/d9b06d/32.png) [@ankitparekh](https://www.ruby-forum.com/u/ankitparekh)\
**Post date:** [March 20, 2009, 8:09am UTC](https://www.ruby-forum.com/t/settings-for-cdn-gzip-header-expires-for-better-yslow/163320/4 "2009-03-20T08:09:35Z")

</div>

Ankit P. wrote:

> OH just noticed. In this forum itself they have added analytics code  
> still they r getting A grade.
> 
> How they have done it? They are using litespeed server and i m using  
> nginx thats the only diff.

no one out there to help me out? Can ne one know how this site i.e  
[ruby-forum.com](http://ruby-forum.com) manages to get Yslow grade A inspite the fact that it  
uses google analytics code in the site?

since when i add the code it reduces the Header Expires and Gzip  
component grade to B from A

thanks
