dimanche 28 juin 2015

Paperclip with Amazon S3: how to stop it from making a request when asked for url

sc.image.url(:thumb)

What I see then in the logs:

[AWS S3 200 0.601484 0 retries] head_object(:bucket_name=>"****",:key=>"sc/images/000/000/526/original/file.jpg")

Why Paperclip does this request? It seems it does it only for AWS.

Is there a way to stop it from doing the check so it simply returns the url without doing additional requests?




Aucun commentaire:

Enregistrer un commentaire