Jump to content

Recommended Posts

This is not really a client-side question, but it concerns HTTP, not HTML, so I think this is the best place for it.

 

When the user clicks the Back button to reload an uncacheable page, is there a way to make the browser reload the page without displaying the "Page is expired" warning first?

 

Background: my server-side code needs to have control over what happens when the user clicks the Back button, so the "Page is expired" warning is meaningless; there's no reason for the user ever to not reload the expired page. Thus the warning just makes the UI more difficult to use!

 

Here's an example of how the problem comes up.

 

The user's workflow normally goes from page A to B to C. The server side code enforces this. For example, if the user tries to go back from C to B, the server must decide whether to say "you can't do that" and reload C, or allow B to reload normally. or allow B to reload but omit some of the operations it normally performs. Therefore, B must be non-cacheable.

 

In this case the user is doing something "wrong," even if the server decides to allow it; the "Page is expired" message is unnecessary but tolerable.

 

But if the user goes from B to a Help page, then clicks the Back button to return to B, the operation is considered perfectly normal. Since B must not be cacheable, the server has to handle the Back operation again, but the "Page is expired" message should not appear; it will just delay the user and possibly make him think he can't get back to B when he really can.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.