简体   繁体   English

我不明白 Rails 中的重定向模式和代理模式有什么区别

[英]I can't understand what is the difference between Redirect mode and Proxy mode in rails

I am confused the differentiation between redirect mode and proxy mode in active storage我对主动存储中重定向模式和代理模式之间的区别感到困惑

referencing: Active Storage Overview参考: 活动存储概述

In all use cases of the words, the meanings of "redirect" and "proxy" have a similar meaning:在单词的所有用例中,“重定向”和“代理”的含义具有相似的含义:

  • redirect: "do it yourself"重定向:“自己做”
  • proxy: "okay, I'll do it for you"代理:“好的,我帮你做”

if you use the "redirect" option, then the users browser will do the work of sending the file to the remote storage.如果您使用“重定向”选项,则用户浏览器将完成将文件发送到远程存储的工作。

if you use the "proxy" option, then the ruby server will do the work of sending the file to the remote storage.如果您使用“代理”选项,则 ruby 服务器将完成将文件发送到远程存储的工作。

does that help?这有帮助吗?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在rails中开发模式和生产模式有什么区别? - in rails what is the difference between development mode and production mode? 我该怎么做才能加速Rails开发模式? - What can I do to speed up Rails development mode? 关于Textmate Ruby on Rails捆绑包的问题,​​HTML(Rails)模式和Ruby on Rails模式有什么区别? - Question on Textmate Ruby on Rails bundle, what's the difference on HTML(Rails) mode and Ruby on Rails mode? 无法理解Rails中的基类 - can't understand what Base class is in rails 为什么当我在生产模式下启动瘦服务器时,找不到我的用户表,而在常规模式下却找到了? -滑轨3 - Why when I start thin server in production mode it can't find my users table, but it does in regular mode ? - Rails 3 我听不懂吗 (Ruby on Rails) - I can't understand this? (Ruby on Rails) 我正在尝试在Apache上运行Rails,但是无法使其进入开发模式 - I am trying to run rails on Apache, but can't get it into development mode 生产模式(Apache和Thin)中的Rails 3找不到rubygems - Rails 3 in production mode (apache and thin) can't find rubygems Rails,TypeError:仅在开发模式下无法修改冻结的对象 - Rails, TypeError: can't modify frozen object, only in Development mode Rails 5 API模式:无法达到嵌套资源的显示操作 - Rails 5 API mode: can't reach show action for a nested resource
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM