【问题标题】:How to set the Cache Control header with Paperclip / fog for a file hosted on Google storage?如何使用回形针/雾为托管在 Google 存储上的文件设置缓存控制标头?
【发布时间】:2016-11-16 12:38:53
【问题描述】:

我可以使用 Paperclip 和 fog-google 将文件上传到我的 google 存储桶。

如何设置文件头?我正在fog-aws 中寻找与s3_headers 选项等效的选项。

我尝试了 google_headers 和 fog_headers 选项,但没有成功。

【问题讨论】:

    标签: paperclip google-cloud-storage fog fog-google


    【解决方案1】:

    我们开始吧:

    fog_file: {
       cache_control: 'max-age=86400'
    }
    

    【讨论】:

      猜你喜欢
      • 2014-08-05
      • 1970-01-01
      • 2014-08-18
      • 2019-01-14
      • 2015-01-29
      • 2018-04-29
      • 2012-02-06
      • 2011-10-01
      • 2019-03-13
      相关资源
      最近更新 更多