[Rg 102] Re: how to set http response header 'cache-control:no-store'
Michael Fellinger
m.fellinger at gmail.com
Thu Sep 27 21:36:19 EDT 2007
On 9/27/07, Vladimir Konrad <v.konrad at lse.ac.uk> wrote:
>
> Hello again,
>
> I am trying to disable browser caching (meta does not work with latest
> firefox) and for this cache-control:no-store should be set.
>
> I tried:
>
> Ramaze::Response.current.header['cache-control'] = 'no-store'
>
> in controller method and template method but it does not work.
>
> Any ideas?
Well, two.
In case you didn't find out yet, you have to write 'Cache-Control',
not 'cache-control'
http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html
has more information on that.
Second, try following approach:
http://pastie.caboo.se/101619
I will try to make it more comfortable to define default headers, they
are being set in rack currently, so we would have to introduce a
separate handling of it... I'm happy to take any suggestions :)
^ manveru
More information about the Ramaze-general
mailing list