Welcome! Log In Create A New Profile


reverse proxy_

Fredrik Widlund
February 16, 2010 10:30AM

I am setting up a reverse-proxy system with Nginx (0.8.32) both as back-end and proxy. The system is used for delivering static large files.

What I would like to achieve is caching the files on the proxies as long as possible offloading the back-end. I would also like the proxy to react to changes on the back-end, but without retransmitting already cached unmodified content.

My problem is that I'm not able to get the proxy to revalidate unmodified static content without retransmitting the already cached file. E.g. if I set proxy_cache_valid for 200/OK delivered content to 60 minutes the proxy won't react to changes in the back-end for that period of time, and if I set it to 1 minute the file will be retransmitted from back-end to proxy every minute, if requested from the proxy by a client. What I would like is, for example, for the proxy to revalidate cached content with I-M-S set to the time of the content being cached and if not modified refreshing the validity of the previously cached content and returning it to the client.

I've looked through the documentation and played with cache-control directives like for example pre/post-check without succeeding in creating this behaviour. There probably is an obvious answer to this question, only I haven't been able to find it.

Kind regards,
Fredrik Widlund

nginx mailing list
Subject Author Posted

reverse proxy_

Fredrik Widlund February 16, 2010 10:30AM

Re: reverse proxy_

Maxim Dounin February 16, 2010 11:04AM

SV: reverse proxy_

Fredrik Widlund February 16, 2010 11:12AM

Re: reverse proxy_

merlin corey February 23, 2010 08:40PM

RE: reverse proxy_

Fredrik Widlund February 24, 2010 04:26AM

Re: reverse proxy_

Ryan Malayter February 25, 2010 02:00PM

RE: reverse proxy_

Fredrik Widlund March 02, 2010 05:22AM

Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 65
Record Number of Users: 6 on February 13, 2018
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready