I have a lot of public files and I want to be able to get them without signature.
How? Why there is always signature there.
I can't cache those files.
AWS S3 by default gives uploaded objects private access, which means these objects can only be retrieved with URLs that have signature. If you wish to make the objects public, you can set the public-read ACL on upload:
Shrine::Storage::S3.new(upload_options: {acl: "public-read"}, **other_options)
And then objects will be accessible without signature, so you can generate URLs with public: true option:
photo.image.url(public: true)
You can also make public: true option the default:
Shrine.plugin :default_url_options, store: {public: true}
Note that as per contribution guidelines questions should be asked on the Shrine google group, GitHub issues should only be used for bug reports.
Most helpful comment
AWS S3 by default gives uploaded objects
privateaccess, which means these objects can only be retrieved with URLs that have signature. If you wish to make the objects public, you can set thepublic-readACL on upload:And then objects will be accessible without signature, so you can generate URLs with
public: trueoption:You can also make
public: trueoption the default:Note that as per contribution guidelines questions should be asked on the Shrine google group, GitHub issues should only be used for bug reports.