Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Forcing a page reload (server side)

 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Ok... here's the deal. I'm looking to have a web page reload its content from the server no matter what. If the usr comes in for the first time, it obviously goes to the server for data, and displays it. I'm also looking to do this if the user ends up using the back button. I want the page to reload the page from the server side. This will force the page state to be correct. Any ideas in how to do this.
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Only thing you have is to use no-cache headers on the page, but it probably will not fetch the data with the back button.

You could try to implement some JavaScript detection, but that is very iffy.

Eric
 
Dale DeMott
Ranch Hand
Posts: 515
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I work w/a software package from PlanView Inc. that ends up doing this. Not sure how they accomplish this. I was possibly considering putting a javascript page in front of the real page. This javascript page woule redirect to the action which would inturn doing a server call. Not sure if this would work or not.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic