# Set expire headers for a list of URI

**URL:** <https://www.ruby-forum.com/t/set-expire-headers-for-a-list-of-uri/188256>\
**Category:** NGINX\
**Created:** [May 8, 2010, 4:00pm UTC](https://www.ruby-forum.com/t/set-expire-headers-for-a-list-of-uri/188256 "2010-05-08T16:00:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonardocg](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/e274bd/32.png) [@leonardocg](https://www.ruby-forum.com/u/leonardocg)\
**Post date:** [May 8, 2010, 4:00pm UTC](https://www.ruby-forum.com/t/set-expire-headers-for-a-list-of-uri/188256/1 "2010-05-08T16:00:45Z")

</div>

Hi.

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

[www.domain.com/bigscript.js](http://www.domain.com/bigscript.js)  
[www.domain.com/weirdfolder/bigstyle.css](http://www.domain.com/weirdfolder/bigstyle.css)  
[www.domain.com/yetanotherfolder/bigjpeg.jpg](http://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
