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)
You are not logged in. Please login or register.
Rails Forum - Ruby on Rails Help and Discussion Forum » Deployment » 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)
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.
Hosting provided by aTech Media