views:

33

answers:

1

Hi, I`m trying to add cache headers on my static files (.css, .js), but only way I found is with some .htaccess stuff that make the page to throw 500 error. So my question is whether there is easier way to add those headers? Thanks in advance.

A: 

Check out this short post that explains exactly how to do it. I have it bookmarked and always refer to it when do starting with caching.

EDIT: Forgot the link, I'm an idiot! Here it is ;) http://maintainable.com/articles/rails_asset_cache

FailBoy
Which short post?
ANeves
sorry about that, link added to answer
FailBoy