假设我想在GCP上存储用户文件,但我的网站托管在AWS上。
当用户访问https://www.example.com/some_file
时可以启动GCP上存在的下载吗?
如何实现?通过我的NodeJS应用中的Express路线吗?
将保留原始网址吗?
这里最好的选择是什么?
HTTP/1.1 302 Found
Location: https://gcp.example.com/somewhere-else
如果您使用快递,则存在一种方便的方法:
res.redirect(301, 'https://gcp.example.com/somewhere-else')