<div dir="ltr">This is the regex that i use and for me it worked when testing with YSlow<br>location ~* ^.+\.(jpg|jpeg|gif|png)$ {<br> access_log off;<br> expires 30d;<br>}<br><br><br><div class="gmail_quote">
On Sat, Sep 6, 2008 at 11:36 AM, David <span dir="ltr"><<a href="mailto:mishy.cth@gmail.com">mishy.cth@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Thanks for your replies.<br>
<br>
Chris I gave that a shot, but am testing the site with Firebug & YSlow (dunno if<br>
you've used them but it's a Yahoo thing that isolates slowdowns on page loads<br>
and makes recommendations.<br>
<br>
When I use:<br>
<div class="Ih2E3d"><br>
location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ {<br>
access_log off;<br>
</div> expires 2d;<br>
}<br>
<br>
The expires header is not working.<br>
<br>
<br>
</blockquote></div><br></div>