I'm using rails and uploading images via the carrier wave plugic to AWS. I started caching the images with memcached/dalli, and it works fine for a bit...but then all images show up as broken after a while (either approx 20-30 mins or when using a different browser).
Here's an example...caching this set of images, where post.avatar_url is the AWS url for the image. Images normally load fine without caching...but caching seems to cause broken images eventually.
<% cache ["homeimages", post] do %>
<%= link_to image_tag(post.avatar_url), post %>
<% end %>
What is causing the images to break?
Thank you!