Welcome! Log In Create A New Profile

Advanced

Re: "X-Accel-Redirect" and Wordpress MU solution

November 27, 2009 01:05PM
Jeff Waugh Wrote:
-------------------------------------------------------
> G'day, from the author of that patch. :-)

Glad to meet you. I just cannot thank you enough for making that great patch.
It saved me and my blog network! :-)

> Here's the relevant configuration snippet I use:
>
> location ^~ /blogs.dir {
> internal;
> alias
> /srv/example.com/root/wp-content/blogs.dir;
> }

I did it and it worked like a charm!

I have one question though. I see your patch had 'exit' before sending following headers.

[code]@header( "Last-Modified: $last_modified GMT" );
@header( 'ETag: ' . $etag );
@header( 'Expires: ' . gmdate('D, d M Y H:i:s', time() + 100000000) . ' GMT' );[/code]

I modified code to send above headers, but it didn't worked well.

I guess above headers if successfully sent will further enhance performance.
If "client has file cached" server can return "304 not modified" and a lot of data transfer can be saved!

What do you think? Any way to add atleast "Etag" header?

--
Rahul Bansal
EasyEngine - https://github.com/rtCamp/easyengine
Subject Author Posted

"X-Accel-Redirect" and Wordpress MU solution

rahul286 November 27, 2009 03:26AM

Re: "X-Accel-Redirect" and Wordpress MU solution

Igor Sysoev November 27, 2009 03:46AM

Re: "X-Accel-Redirect" and Wordpress MU solution

Jeff Waugh November 27, 2009 04:18AM

Re: "X-Accel-Redirect" and Wordpress MU solution

rahul286 November 27, 2009 01:05PM

Re: "X-Accel-Redirect" and Wordpress MU solution

Rob Schultz November 27, 2009 02:22PM

Re: "X-Accel-Redirect" and Wordpress MU solution

rahul286 November 28, 2009 03:10AM

Re: "X-Accel-Redirect" and Wordpress MU solution

rahul286 November 28, 2009 03:17AM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 99
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