The information in this article applies to:
SYMPTOMSWhen using the Preview in Browser command on an .asp or .htm file, an older version of the file is seen, and the changes made seem to have been lost. CAUSEThis is caused by the cache settings in the browser or the proxy server. If the browser is set to look only for cached versions, or if the proxy server is set to cache files, then the updated files will not be seen. RESOLUTION
There are a few ways to work around this. From the user side, change the
caching settings of the browser. To change this, click Options from the
View menu, then click Advanced and "Temporary Internet Files - Settings."
Select an option other than "Never." The page should then display
correctly. To correct this from the server side, include the line "<%
Response.Expires = 0 %>" at the top of the page in .asp files. This will
keep any browser from displaying the cached version of the file. Note that
this will work only for .asp files.
An important caveat is that Internet Explorer will not look for a new version if the same file that is requested through Visual InterDev's Preview in Browser is the file that is currently displayed in the browser's window. Internet Explorer takes focus but does not look for a more recent version no matter what the Cache Settings are. Using the browser's "Refresh" button gets the new contents. STATUSThis behavior is by design. MORE INFORMATIONSteps to Reproduce BehaviorPreview an .asp or .htm file that has just been changed. The changes will not show up in the browser if the file is cached somewhere.REFERENCES
For additional information, please see the following article in the
Microsoft Knowledge Base:
Q172897 PRB: Link Repair Does Not Work Within HTML Layout Files For the latest Knowledge Base articles and other support information on Visual InterDev and Active Server Pages, see the following page on the Microsoft Technical Support site: http://support.microsoft.com/support/vinterdev/ Additional query words:
Keywords : kbExtension kbFrontPage kbServer kbVisID100 kbWebServer kbGrpASP |
Last Reviewed: November 8, 1999 © 2000 Microsoft Corporation. All rights reserved. Terms of Use. |