Nginx caching successive requests to reduce server load

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:

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

Posted at Nginx Forum: