Caching with Etags Discussion
Discussion for
Caching with Etags
Can I use this with associations in views?
I have post with author and use fresh_when on post. If I change author will it render on post view old author or new one?
Hi, the documentation states it uses updated_at
to set the last_modified in the response. So as long as your Post gets updated as the author gets updated, this should work.
So basically this tells browsers that have already downloaded a copy of this version of this URL - hey, the URL has not changed?
Or this caches the whole page on Rails side and re-sends the Rails' HTML to the browser?