[Ruby] Browser Back Problem with Rails
Michael Judge
mjudge at surveycomplete.com
Mon Dec 11 16:23:20 PST 2006
Hey Neil,
I'm pretty sure it's your page's response headers. From p.425 (Agile
Web Development with Rails -- 2nd Edition), where it's talking about
the controller environment, it says:
"headers - A hash of HTTP headers that will be used in the response.
By default, Cache-Control is set to no-cache..."
Aha! So the answer is to set headers["Cache-Control"] to a
reasonable value in your controller, and Internet Explorer will think
it's a static page. I don't know what a reasonable value would be,
but this should be enough info to get you pointed in the right
direction.
- Mike
On Dec 11, 2006, at 9:24 AM, Neil Moomey wrote:
> I'm not sure if this is a Rails or Webrick problem or what. I
> noticed the
> browser back button gives me a "The page cannot be displayed" error
> on all
> my pages that post or link to themselves after the second post. I
> was able
> to replicate the error with a static html page but when I run this
> same html
> page on another web server the problem goes away. I don't recall
> having
> this problem with other frameworks. I have not yet set up Apache
> for Rails
> but with this problem disappear when I do? I changed the submit
> button to a
> link and still have the same error. Oddly enough it works fine in
> Firefox.
> Only I.E. has this error message. I tried it on another computer
> as well.
> Any ideas?
>
> Neil
> _______________________________________________
> Ruby at zenspider.com - Seattle.rb non-commercial list
> http://www.zenspider.com/seattle.rb
> http://www.zenspider.com/mailman/listinfo/ruby
>
>
More information about the Ruby
mailing list