Is it possible to render a partial and force the browser not to load from cache?
-
30-09-2019 - |
Question
I have a window and when it opens, I need to make sure that the image is its latest state.
So I thought why not..
render :partial => 'logo', :cache => false
but that's not really rails. Any ideas?
Solution
Why not:
<img src="youimg.jpg?56734678">
The number would be the current time or something like that.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow