# Nginx caching successive requests to reduce server load

**URL:** <https://www.ruby-forum.com/t/nginx-caching-successive-requests-to-reduce-server-load/245821>\
**Category:** NGINX\
**Created:** [July 18, 2013, 9:02am UTC](https://www.ruby-forum.com/t/nginx-caching-successive-requests-to-reduce-server-load/245821 "2013-07-18T09:02:09Z")\
**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:** [July 18, 2013, 9:02am UTC](https://www.ruby-forum.com/t/nginx-caching-successive-requests-to-reduce-server-load/245821/1 "2013-07-18T09:02:09Z")

</div>

Hi, I couldn’t find what I was looking for in the search option.

For a page that displays current time when refreshed, when the client  
presses and holds refresh button, nginx should serve a cached version of  
the  
page instead of getting the latest. When client stops pressing refresh  
and  
waits for X ms, then refreshes again, I should see the newest time.

Is there an option for this in nginx?

Posted at Nginx Forum:

> **[nginx caching successive requests to reduce server load](https://forum.nginx.org/read.php?2,240976,240976#msg-240976)**
>
> Hi, I couldn't find what I was looking for in the search option. For a page that displays current time when refreshed, when the client presses and holds refresh button, nginx should serve a cached version of the page instead of getting the latest....

---

<div class="post-metadata">

**Author:** ![nurettin](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/n/0ea827/32.png) [@nurettin](https://www.ruby-forum.com/u/nurettin)\
**Post date:** [July 18, 2013, 12:34pm UTC](https://www.ruby-forum.com/t/nginx-caching-successive-requests-to-reduce-server-load/245821/2 "2013-07-18T12:34:17Z")

</div>

you can adjust (proxy)-cache-time in seconds

Posted at Nginx Forum:

> **[Re: nginx caching successive requests to reduce server load](https://forum.nginx.org/read.php?2,240976,240987#msg-240987)**
>
> Hi, I couldn't find what I was looking for in the search option. For a page that displays current time when refreshed, when the client presses and holds refresh button, nginx should serve a cached version of the page instead of getting the latest....
