Sunday, 15 March 2015

ruby - Serving images in rails -


For every version of my app, I upload my property to the cloud CDN, and some images on the website Loaded as imagename-somehash .

I have static images which are large, i.e. like carousel images, which do not change often or at all. So, when the app changes, they can stay cached by customers who previously visited the website.

How would that happen? Any image under the app / property folder is uploaded to the imagename-somehash form on the CDN, so the image is converted to every version of the app.

I am using Rail 4.2, is it possible?

There is an article in the rail guides that finally gives some insights about that hash of a file And how it works Check your environment files In the output you want to be true to config.assets.digest .


No comments:

Post a Comment