# Strange SPDY behaviour about request time with stastic proxy cached content

**URL:** <https://www.ruby-forum.com/t/strange-spdy-behaviour-about-request-time-with-stastic-proxy-cached-content/246113>\
**Category:** NGINX\
**Created:** [August 29, 2013, 10:30pm UTC](https://www.ruby-forum.com/t/strange-spdy-behaviour-about-request-time-with-stastic-proxy-cached-content/246113 "2013-08-29T22:30:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Rafa\_F](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/958977/32.png) [@Rafa\_F](https://www.ruby-forum.com/u/Rafa_F)\
**Post date:** [August 29, 2013, 10:30pm UTC](https://www.ruby-forum.com/t/strange-spdy-behaviour-about-request-time-with-stastic-proxy-cached-content/246113/1 "2013-08-29T22:30:20Z")

</div>

Good time of day!

We use nginx as load balancer and reverse proxy for some static content  
(images etc).  
And a problem was found with enabling SPDY: cached content with enabled  
SPDY  
becomes get from server with greater request time and i think slower  
(according Chrome debug console).

Here some lines from access.log, without spdy, just ssl:

request\_time: “0.069” upstream\_response\_time: “0.069” “MISS”  
request\_time: “0.370” upstream\_response\_time: “0.211” “MISS”  
request\_time: “1.294” upstream\_response\_time: “1.200” “MISS”  
and from cache:  
request\_time: “0.778” upstream\_response\_time: “-” “HIT”  
request\_time: “0.938” upstream\_response\_time: “-” “HIT”

SPDY enabled:  
request\_time: “0.380” upstream\_response\_time: “0.120” “MISS”  
request\_time: “1.181” upstream\_response\_time: “0.737” “MISS”

before now everything looks fine, but now for content from cache:  
request\_time: “10.389” upstream\_response\_time: “-” “HIT”  
request\_time: “9.493” upstream\_response\_time: “-” “HIT”

Here is a graphical illustration of problem: in the middle for some time  
was  
enabled spdy, but not other time on both sides.  
It shows average $request\_time and $upstream\_response\_time variables sum  
every second: sum(time)/sum(requestcount) per second

Nginx cache placed on memory disk /dev/md0 , capacity 60% right now

Env: FreeBSD amd64  
nginx version: nginx/1.4.2  
built by gcc 4.2.2 20070831 prerelease [FreeBSD]  
TLS SNI support enabled  
openssl-1.0.1e

Any suggestions, thoughts, ideas?  
Thanks!

Posted at Nginx Forum:

> **[Strange SPDY behaviour about request time with stastic proxy cached content.](https://forum.nginx.org/read.php?2,242350,242350#msg-242350)**
>
> Good time of day! We use nginx as load balancer and reverse proxy for some static content (images etc). And a problem was found with enabling SPDY: cached content with enabled SPDY becomes get from server with greater request time and i think slower...

---

<div class="post-metadata">

**Author:** ![endo](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/e/6de8d8/32.png) [@endo](https://www.ruby-forum.com/u/endo)\
**Post date:** [August 29, 2013, 10:40pm UTC](https://www.ruby-forum.com/t/strange-spdy-behaviour-about-request-time-with-stastic-proxy-cached-content/246113/2 "2013-08-29T22:40:16Z")

</div>

Sorry, forgot link image for visualizing a problem:  
[![](http://i59.fastpic.org/big/2013/0830/87/689d2b6f84dfb88fe5a57b7ad60def87.png) ](http://i59.fastpic.org/big/2013/0830/87/689d2b6f84dfb88fe5a57b7ad60def87.png)

Posted at Nginx Forum:

> **[Re: Strange SPDY behaviour about request time with stastic proxy cached content.](https://forum.nginx.org/read.php?2,242350,242351#msg-242351)**
>
> Good time of day! We use nginx as load balancer and reverse proxy for some static content (images etc). And a problem was found with enabling SPDY: cached content with enabled SPDY becomes get from server with greater request time and i think slower...
