Topic: How to Set Web Asset Expiration Header

Hi,
Does anyone know how to set the header for static resource expiration time?
config.static_cache_control doesn't work.

Last edited by limgw (2012-06-25 11:56:05)

Re: How to Set Web Asset Expiration Header

The asset pipeline will take care of expiring assets on the next deployment for you. If you want finer grained control I'd look to your webserver. In nginx there is an expire option under the location block.

I'm a Phoenix Ruby on Rails developer currently available for freelance work.