Set expire headers for a list of URI

Leonardo Crespo leo at leocrespo.com
Sat May 8 17:59:55 MSD 2010


Hi.

What's the best way to tell nginx to set expire headers to list of uri? Like:

www.domain.com/bigscript.js
www.domain.com/weirdfolder/bigstyle.css
www.domain.com/yetanotherfolder/bigjpeg.jpg
....

I search the forums and I could only find examples for all files
(ico|js|css) and I need the headers only for specific uris.

Cheers!

Leo



More information about the nginx mailing list