# Caching any point to go in ram?

**URL:** <https://www.ruby-forum.com/t/caching-any-point-to-go-in-ram/235224>\
**Category:** NGINX\
**Created:** [June 7, 2013, 2:02pm UTC](https://www.ruby-forum.com/t/caching-any-point-to-go-in-ram/235224 "2013-06-07T14:02:40Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![addis\_a](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/c4cdca/32.png) [@addis\_a](https://www.ruby-forum.com/u/addis_a)\
**Post date:** [June 7, 2013, 2:02pm UTC](https://www.ruby-forum.com/t/caching-any-point-to-go-in-ram/235224/1 "2013-06-07T14:02:40Z")

</div>

Hello,

I have a 15k rpm server 16g ram on which is fiercely installed nginx  
1.5.1  
on a debian 7 machine (no apache installed).

I read a lot (up to crunching my head) about caching strategy.

I would like to reduce the latency of file serving.

currently, my webpage (static html) loads in 43-70 ms but then 44ms are  
spent doing nothing then load the images.

The total for a 120k page is 500ms.

What is bugging me is that even with 4 cookie-less domain (actually same  
disk) the answer is always page load + 44 ms idle.  
So not a browser limitation.

How could nginx cache the images so that the answer be really fast ?  
proxy\_cache is useless in my case, isn’t it ?  
Varnish would maybe help but it is something on the stack to debug when  
things go wrong. Not really a solution.

Thanks,

Posted at Nginx Forum:

> **[Caching any point to go in ram ?](https://forum.nginx.org/read.php?2,239951,239951#msg-239951)**
>
> Hello, I have a 15k rpm server 16g ram on which is fiercely installed nginx 1.5.1 on a debian 7 machine (no apache installed). I read a lot (up to crunching my head) about caching strategy. I would like to reduce the latency of file serving.

---

<div class="post-metadata">

**Author:** ![larry](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/47e85d/32.png) [@larry](https://www.ruby-forum.com/u/larry)\
**Post date:** [June 7, 2013, 4:51pm UTC](https://www.ruby-forum.com/t/caching-any-point-to-go-in-ram/235224/2 "2013-06-07T16:51:33Z")

</div>

Hello!

On Fri, Jun 07, 2013 at 08:02:14AM -0400, Larry wrote:

> spent doing nothing then load the images.
> 
> The total for a 120k page is 500ms.
> 
> What is bugging me is that even with 4 cookie-less domain (actually same  
> disk) the answer is always page load + 44 ms idle.  
> So not a browser limitation.

From your description it looks like 44ms is a time spent by a  
browser doing something prerequisite (parsing the page? resolving  
dns names? loading some external javascript?).

–  
Maxim D.

> **[nginx: donation](http://nginx.org/en/donation.html)**
