开发者

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜