rewrite rule

Maxim Dounin mdounin at mdounin.ru
Mon Jul 21 02:05:47 MSD 2008


Hello!

On Sun, Jul 20, 2008 at 11:31:20PM +0200, Chavelle Vincent wrote:

>Maxim Dounin wrote:
>> 
>> You don't actually need all this rewrite stuff. :)
>> 
>> Maxim Dounin
>
>Thank you for these advices. It really help me :)

No problem.

>Could you see http://www.ruby-forum.com/topic/159353 topic.
>Maybe that is still my fault :P

I'm not really understand what you are trying to achieve, but I 
belive you problem is your backend's Etag header, which is used by 
your browser to check freshness of the page.  Backend replies 304 
Not Modified - and nginx's SSI has no chance to modify page.

Try the following:

    proxy_hide_header Etag;

This will hide Etag header from responses sent to clients, and 
probably will resolve your issue.  Of course you need to clear 
browser cache once again to remove old version of the page with 
Etag.

See 
http://wiki.codemongers.com/NginxHttpProxyModule#proxy_hide_header 
for details.

Maxim Dounin





More information about the nginx mailing list