# How to configure the expires header if my static file is served by resin?

**URL:** <https://www.ruby-forum.com/t/how-to-configure-the-expires-header-if-my-static-file-is-served-by-resin/214190>\
**Category:** NGINX\
**Created:** [November 24, 2011, 6:04am UTC](https://www.ruby-forum.com/t/how-to-configure-the-expires-header-if-my-static-file-is-served-by-resin/214190 "2011-11-24T06:04:38Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![luislavena](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/0ea827/32.png) [@luislavena](https://www.ruby-forum.com/u/luislavena)\
**Post date:** [November 24, 2011, 6:04am UTC](https://www.ruby-forum.com/t/how-to-configure-the-expires-header-if-my-static-file-is-served-by-resin/214190/1 "2011-11-24T06:04:38Z")

</div>

Hello, all

I use nginx as a reverse proxy and all traffic goes to resin. The  
css/js files are also hosted on resin.

Now I want to add the expires directives to css/js, is the following  
configuration correct?

location ~ .\*.(css|js)$  
{  
include proxy\_params;  
proxy\_pass http://back\_end;  
#access\_log off;  
expires 6h;  
}

```
  location / {
      include proxy_params;
      proxy_pass http://back_end;
  }

```

thanks.
