Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

POST action gets "Please refresh"  RSS feed

 
Christophe Lee
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
I am implementing a page that lists search results. This page is a result of a form POST. Therefore, whenever the user clicks "back" on the browser, he gets a "Webpage expired, please refresh". This is very ineffective for a search results page and I would like to know if there is any way I can set the browser to "cache" or something that won't require a rePOST when the user hits the "back" button. In this example, changing the POST to GET is not possible.
Thanks for any help.
 
Michael Zalewski
Ranch Hand
Posts: 168
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
That shouldn't happen if you don't specifically set the page to expire. (You do that by setting HTTP headers, but it might be getting done indirectly).
But does your 'search' page also have a password field? If it does, you could get this warning because the browser will not refresh input type="password" from the cache.
 
Christophe Lee
Ranch Hand
Posts: 142
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
No, the results is not built by a password field. Neither does it contain a password field.
Ok, so you're saying the normal POSTed page should not make you refresh it when you return to it?
I think you're right...I just verified on yahoo mail. So this is probably the app server setting or something....
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!