开发者

Is it possible to render a partial and force the browser not to load from cache?

开发者 https://www.devze.com 2023-01-20 11:44 出处:网络
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..

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 no开发者_开发技巧t really rails. Any ideas?


Why not:

<img src="youimg.jpg?56734678">

The number would be the current time or something like that.

0

精彩评论

暂无评论...
验证码 换一张
取 消