Home > Software engineering >  I can't understand what is the difference between Redirect mode and Proxy mode in rails
I can't understand what is the difference between Redirect mode and Proxy mode in rails

Time:02-05

I am confused the differentiation between redirect mode and proxy mode in active storage

CodePudding user response:

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.

does that help?

  •  Tags:  
  • Related