Welcome! Log In Create A New Profile

Advanced

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

Rob Schultz
November 27, 2009 02:22PM
On Nov 27, 2009, at 12:05 PM, rahul286 wrote:
>
> I did it and it worked like a charm!
>
> I have one question though. I see your patch had 'exit' before sending following headers.
>
> @header( "Last-Modified: $last_modified GMT" );
> @header( 'ETag: ' . $etag );
> @header( 'Expires: ' . gmdate('D, d M Y H:i:s', time() + 100000000) . ' GMT' );
>
> 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?

I think this should be handled by nginx and not your php scripts. Since nginx will be handling the files directly from the filesystem it should send out the Expires and Etag headers.
you can configure the expires via http://wiki.nginx.org/NginxHttpHeadersModule#expires

Rob
_______________________________________________
nginx mailing list
nginx@nginx.org
http://nginx.org/mailman/listinfo/nginx
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: 271
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