asset fingerprinting on S3

119 views
Skip to first unread message

ipster

unread,
Nov 5, 2010, 1:25:25 AM11/5/10
to carrierwave
Is there an easy way to use filename based asset fingerprinting in
carrierwave on amazon S3? Paperclip recently added this
functionality: http://mike.bailey.net.au/blog/?p=31

If I do this manually and I override the filename attribute to include
a MD5 hash, for example, will recreate_versions! delete old versions
of the file when I reprocess?

Thanks!

Jonas Nicklas

unread,
Nov 5, 2010, 4:39:20 AM11/5/10
to carri...@googlegroups.com
The filename method is only used when uploading, it shouldn't return
anything random as it may be called multiple times dring the process,
but it shouldn't be a problem if it returns, say the current date.

/Jonas

> --
> You received this message because you are subscribed to the Google Groups "carrierwave" group.
> To post to this group, send email to carri...@googlegroups.com.
> To unsubscribe from this group, send email to carrierwave...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/carrierwave?hl=en.
>
>

Mat

unread,
Nov 6, 2010, 12:02:03 PM11/6/10
to carrierwave
I think that's a really important feature when using long expiry times
to use caching (which'll save you money on s3).
If anybody has already implemented it, please share it!
Reply all
Reply to author
Forward
0 new messages