Re: Expires headers for url rewrite rules

2013-10-21 Thread bogdanb
Moving the rewrite rules inside the " ~* \.(js|css|png|jpg|jpeg|gif|ico)$ { " block did the trick. Thanks a lot for the quick reply. Francis Daly Wrote: --- > On Mon, Oct 21, 2013 at 05:52:57AM -0400, bogdanb wrote:

Expires headers for url rewrite rules

2013-10-21 Thread bogdanb
In my config I have some url rewrite rules for images as seen below: location / { rewrite ^/custom/path/(.*)/(.*)-(.*).jpg$ /media/images/products/$1/$3.jpg last; } They work just fine. I'm also trying to set Expire headers for all static resources (images, css, js). I've added the following