Hi!
What HTTP headers do I have to sent to make the browser cache the
output of an action?
I tried:
request.delete(‘Cache-control’) but no luck.
It’s an action that sends an image to the browser, hence I need that.
Thanks,
Rob
Hi!
What HTTP headers do I have to sent to make the browser cache the
output of an action?
I tried:
request.delete(‘Cache-control’) but no luck.
It’s an action that sends an image to the browser, hence I need that.
Thanks,
Rob
Wow. This is what I was looking for:
expires_in 1.year
Beautiful…
Robert MannI wrote:
Wow. This is what I was looking for:
Set cache to expire in one year
expires_in 1.year
Beautiful…
Where do you use expires_in? Can you set it within a controller?
This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.
Sponsor our Newsletter | Privacy Policy | Terms of Service | Remote Ruby Jobs