Webpage has expired

Hi

I am currently getting this error in IE7


Most likely cause:
The local copy of this webpage is out of date, and the website
requires that you download it again.

What you can try:
Click on the Refresh button on the toolbar to reload the page.
After refreshing, you might need to navigate to the specific webpage
again, or re-enter information.


when a user does the following

  1. does not fill in all required fields in a search form
  2. submits the form
  3. is displayed the search form again with errors highlighted
  4. corrects errors and submits form again
  5. is displayed results page and then presses back button

I’ve googled this problem and this seems to be an issue with IE7 and
form posts creating a page. Unfortunatley the solutions I’ve found of
using get instead of post is not really possible as this problem
occurs on all forms I have on my site, some of which can have a lot of
data.

Any ideas about how I can get round this?

Cheers

Tony

bump

A) GET’s instead of POST’s are possible with a simple addition of an
option
during form creation. Just use them correctly.B) Ryan B. (I believe)
did
a Railscast on displaying the form again while going back (along the
lines
of redirect_to :back with some other option. Can’t remember).
C) Although there is appears to be a forum attached to this mailing
list,
'bump’ing the message does nothing for the cause.

Hope some of this helps.

On 10/1/07, teesea [email protected] wrote:


using get instead of post is not really possible as this problem


Richard J Hancock
Developer/System A.

Thanks for the suggestion, I will look for the railscast you
mentioned.

teesea wrote:

Thanks for the suggestion, I will look for the railscast you
mentioned.

thanks for this post, I didn’t have lots of data to push to the server
so changing the form_for by adding :method => :get in the html options
hash solved it for me.