"X-Accel-Redirect" and Wordpress MU solution

Rob Schultz rschultz7 at gmail.com
Fri Nov 27 22:16:49 MSK 2009

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


More information about the nginx mailing list