Welcome! Log In Create A New Profile

Advanced

Re: Proxy Feature Request

Maxim Dounin
September 09, 2010 02:58PM
Hello!

On Thu, Sep 09, 2010 at 05:40:56PM +1000, mat h wrote:

> Ok first of all long time mailing list reader here, first time in a
> while ive sent something in.
>
> Ok, heres my request:
> A module that would allow for a partial proxy_cache based on the last
> modified date returned by the upstream server, basically here's the
> pseudo code for it (persuming that the location block had something
> like "proxy_partial_cache on;")
>
> Request: http://test.com/123.html
> Fetch Page http://upstream/123.html
> loop headers {
> if(header=='last-modified'){
> if(last_modified_date <= proxy_last_modified_date){
> return proxy_data and terminate_upstream_connection;
> }
> }
> }
> return upstream_data;
>
> Hope that explains my request,

Looks like what you ask for is usually called cache revalidation.

Using If-Modified-Since in request to backend (with last-modified
from already cached response) and returning cached copy on 304
backend reply would be better way to go.

Maxim Dounin

_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
Subject Author Posted

Proxy Feature Request

mat h September 09, 2010 03:44AM

Re: Proxy Feature Request

Maxim Dounin September 09, 2010 02:58PM

Re: Proxy Feature Request

mat h September 09, 2010 10:02PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 158
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready