Solved

Asp page not reloading in website, old version cached?

Posted on 2009-05-19
6
323 Views
Last Modified: 2012-05-07
We have made some changes to an asp page in our website.  The new page was copied over the old one in the website folder.  When viewing the page through IE, the old page comes up, as if it's cached.  Yet when editing it with Dreamweaver CS3, it's the new code.  This sounds like some sort of caching on the website side, any ideas?
0
Comment
Question by:sfaul
  • 3
  • 2
6 Comments
 
LVL 11

Expert Comment

by:azarc3
ID: 24423535
Are you sure that the page has actually been pushed out to the server?
To make sure I would delete the server copy, then sync the page again.

Then, when you get to the page in your web browser, press CTRL+F5.
0
 

Author Comment

by:sfaul
ID: 24423585
The file was physically removed, and copied in again.  And I've refreshed and deleted temporary internet files, etc.  And it's not just me, but several other users who are still seeing old versions of the page.  So there is some caching somewhere.  
0
 
LVL 11

Accepted Solution

by:
azarc3 earned 500 total points
ID: 24424494
Hitting CTRL+F5 usually allows you to get the latest copy... unless the server is having REAL issues. Is this the only page that shows this same behavior?

Is this site in an environment that is load balanced?
--> This is common with large corprorate data centers that require high availability.
--> If so you'll have to wait until the other servers get the new version of the page.

This is going to sound silly, but are you sure you're updating the file you are looking at in the browser? Try this and see what happens:
1. Delete the file on the server.
2. Go to the page in the browser and verify that the page is actually deleted.
    --> If the page still shows up I bet you're not actually changing the "right" page


THE ABSOLUTE LAST RESORT OPTION:
------------------------------------------------------------------------------------
The only sure-fire way to fix a situation where a page is stuck in cache and isn't being refreshed is to ask the server administrator(s) to restart IIS on the server. Be aware that any website on the server will be down for however long it takes for IIS to cycle AND any current sessions will be lost. Pretty "expensive", but it will fix your situation IF it's a caching problem.

If the old version of the page is still showing up then you're definitely NOT updating the page you think you're updating.
0
Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

 

Author Comment

by:sfaul
ID: 24424568
Refresh doesn't work.  It is our employee intranet site, and this is the first dynamic page, everything else is static html.  And silly isn't silly after you've tried almost everything you can think of.  I did delete the file, and I got your user friendly ie message about a missing page.  So I think I may be at the restart IIS stage.  
0
 
LVL 54

Expert Comment

by:b0lsc0tt
ID: 24426654
sfaul,

Before restarting your server what happens if you add some random number (e.g. filename123.asp instead of filename.asp) to the file name?  Does that page appear correct and up to date?

What version of IIS and what is the OS for the server?  What do you get if you try viewing the page in Firefox or some other browser on the same computer?  What about IE on another computer?

Let me know if you have any questions or need more information.

b0lsc0tt
0
 

Author Closing Comment

by:sfaul
ID: 31583061
Stopping and restarting IIS was the only thing that worked.  Thanks for the help.
0

Featured Post

Maximize Your Threat Intelligence Reporting

Reporting is one of the most important and least talked about aspects of a world-class threat intelligence program. Here’s how to do it right.

Join & Write a Comment

Author Note: Since this E-E article was originally written, years ago, formal testing has come into common use in the world of PHP.  PHPUnit (http://en.wikipedia.org/wiki/PHPUnit) and similar technologies have enjoyed wide adoption, making it possib…
Foreword (July, 2015) Since I first wrote this article, years ago, a great many more people have begun using the internet.  They are coming online from every part of the globe, learning, reading, shopping and spending money at an ever-increasing ra…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now