开发者

Possible to use routes.rb for a rewrite rule?

开发者 https://www.devze.com 2023-03-29 04:14 出处:网络
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

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

精彩评论

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