dimanche 1 mars 2020

Rails: image exists but is not rendered in production even though rendered in development

There are similar questions like this, this, this, and this, but they don't address the problem.

We have a locally stored image that is rendered in the development environment.

In production, however, the image doesn't render. Accessing the image URL from the browser gets redirected to the 404 page because the image isn't found for some reason. Other images in the same directory are rendered without issue.

Details: * Image 1 URL: https://test.com/designs/thumbnails/foo/bar1.jpg * Image 2 URL: https://test.com/designs/thumbnails/foo/bar2.jpg

  • Entering both image URLs directly into the browser yields different results. Image 1 will render, but image 2 won't. Image 2 redirects to the 404 page.

  • This isn't a caching issue; rendering in incognito fails.

  • Both images exist in the directory.

  • This seems to occur for new images, though the pattern isn't clear (i.e., some new images render but not all do).

  • We use Rails 3.2 and Cloudflare.

1 commentaire:

  1. Did you know there's a 12 word phrase you can tell your crush... that will trigger intense emotions of love and instinctual attraction to you deep within his heart?

    Because deep inside these 12 words is a "secret signal" that triggers a man's instinct to love, look after and look after you with his entire heart...

    =====> 12 Words That Trigger A Man's Desire Impulse

    This instinct is so built-in to a man's mind that it will make him work better than ever before to make your relationship the best part of both of your lives.

    Matter of fact, fueling this mighty instinct is absolutely binding to getting the best ever relationship with your man that as soon as you send your man a "Secret Signal"...

    ...You will soon find him open his heart and mind for you in such a way he's never experienced before and he'll recognize you as the one and only woman in the galaxy who has ever truly interested him.

    RépondreSupprimer