Expires .. is there a way to set an expires header for all of jpg, gif, css, js ?

David mishy.cth at gmail.com
Sat Sep 6 20:36:26 MSD 2008


Thanks for your replies.

Chris I gave that a shot, but am testing the site with Firebug & YSlow (dunno if
you've used them but it's a Yahoo thing that isolates slowdowns on page loads
and makes recommendations.

When I use:

        location ~* \.(jpg|jpeg|gif|css|png|js|ico|html)$ {
            access_log        off;
            expires           2d;
        }

The expires header is not working.






More information about the nginx mailing list