Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have an image resize server sitting behind an nginx server.

On a cold cache two clients requesting the same file could trigger two resize jobs. GET / GET /

It would be great if only one of the requests could go through to the backend in this situation (while the other client is set 'on-hold').

In Varnish there seems to be such a feature, called Request Coalescing. However that seems to be a Varnish-specific term. Is there something similar for Nginx?

share|improve this question
up vote 2 down vote accepted

Maybe, "cache lock" is what you're looking for?

share|improve this answer
Awesome. Thanks! – Marcel Jackwerth Jun 8 '12 at 12:15

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.