Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Response.CacheControl =
Message
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Divers
Thread ID:
00531340
Message ID:
00531557
Vues:
19
>Ok in order to stop a page from being cached I used Response.CacheControl = "no-cache". It works fine but when a user goes 'back' to the page it displays this message saying:
>
>Warning: Page has Expired The page you requested was created using information you submitted in a form. This page is no longer available. As a security precaution, Internet Explorer does not automatically resubmit your information for you.
>
>To resubmit your information and view this Web page, click the Refresh button.
>
>
>Is there any way I can just have the browser reload the page (with submitted values) without having to hit the refresh button?
>
>
>Thanks

Eric;

You may already be doing this but I will go over what I am doing for this problem.

In the header of your ASP form
< %@ LANGUAGE=VBSCRIPT % >

< %
Response.Expires = -1
Response.AddHeader "Pragma", "no-cache"
Response.AddHeader "Cache-control", "no-store"
% >


One developer I talked to also adds the same code to the "footer" (the end of the ASP form), so he has it in two places.

Also, it helps to do the following drill down from the IE Browser Menu for each user:

Tools
Internet Options
Temporary Internet Files
Settings Check for newer versions of stored pages.
Every visit to the page.

Need I mention that Netscape is not an option?

Tom
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform