<div>I have two php scripts (css.php and js.php) which combine all css and js files. To make things faster on the client side, I want to </div><div><ul><li>set expires header to far future</li><li>not set cookies for those request</li>

</ul></div>Here is what works now:<div><br></div><div><div>        location ~ \.php$ {</div><div>                # php cgi stuff goes here</div><div><br></div><div>                if ($request_uri ~ (css|js)\.php) {</div>

<div>                        expires max;</div><div>                }</div><div>        }</div><div><br></div><div>        location ~ (css|js)\.php {</div><div>                fastcgi_hide_header Set-Cookie;</div><div>        }</div>

<div><br></div><div>The question is -- why it&#39;s not allowed to use *fastcgi_hide_header Set-Cookie;* inside the if () { ... } statement?</div><div><br></div><div>Regards,</div><div>Kaspars</div></div>