Possible to use routes.rb for a rewrite rule?
I'm trying to 开发者_如何学编程get rails+jammit+Cloudfront working. The last thing I need to figure out is how to cache bust. I'm using heroku. Below is the step for apache. Is it possible to do the same thing in the Rails route.rb file?
# Cache-busting rule for CloudFront.
RewriteEngine on
RewriteRule ^/r-.+/(images|javascripts|stylesheets|system|assets)/(.*)$ /$1/$2 [L]
Thanks for any help
精彩评论