Forum Moderators: open

Message Too Old, No Replies

ASP Include file not updating site

even though old file deleted?

         

SuzyUK

7:20 pm on Oct 5, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I've uploaded some changes to SSI pages today and the site itself is not updating. I even tried deleting the include files and then I did a refresh, the pages still rendered! as if the old code was still present so I presume that indicates a caching issue?

My templates are heavily reliant on include files for header footer sidebar etc.. the thing is I've never had this problem before in fact I did a major site change last week with no problems..

I did some searching and found this in the MS KB [support.microsoft.com] but I can't get it to do anything..

Oh and btw in that article it suggest some ASP code, should that go into each and every include file? (even if just temporarily)

any suggestions or just wait til host restarts IIS?

Suzy

dotme

8:36 pm on Oct 5, 2004 (gmt 0)

10+ Year Member



Using Frontpage as your editor?

I've seen this on occasion with Frontpage Included Content (A bit different from included files). Usually, if you go to Tools (In Frontpage) and click Recalculate Hyperlinks, it will force the server to freshen up those includes.

Hope this helps!

SuzyUK

7:32 am on Oct 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi dotme thanks..

but Not using FrontPage (just a plain text editor), and still no update :(

MozMan

5:47 pm on Oct 6, 2004 (gmt 0)

10+ Year Member



Is it possible that you are caching the page locally, and not getting a fresh copy with your browser? I know I have had that happen before...

-Moz

RossWal

6:40 pm on Oct 6, 2004 (gmt 0)

10+ Year Member



I've seen this with SSI includes using notepad as the editor. Restarted the webserver to fix it. Stopping and restarting the web might have been good enough. Sorry, not a very scientific answer.

SuzyUK

6:43 pm on Oct 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi Mozman.. don't think so, done all the cache clearing etc, CTRL+F5 refreshes etc.. (which is what host advised too btw)

Now strangely I've discovered that all except my home page (root default.asp) are now showing the updates I did last night and I just now did another small change in a global include and again it's not showing sitewide, I wondered if it was just pages that called dynamic content, but this doesn't seem to be the case..

this are now the response headers I have in place..
Response.Buffer = True
Response.Expires = -1000
Response.ExpiresAbsolute = Now() - 2
Response.AddHeader "pragma","no-cache"
Response.AddHeader "cache-control","private"
Response.AddHeader "Pragma", "no-cache"
Response.CacheControl = "no-cache"

but I've no idea if they're all required or if any of them are doing more harm than good .. I also put
<meta http-equiv="pragma" content="no-cache"></meta>

in the head section (via include) last night which is now showing in the source on all pages (except home) tonight, but that change I just did is still not showing.. I'm confused :o (which is not too difficult really ;))

thanks for replies so far

Suzy

<added>Rosswal.. I think maybe you're right, but I can't do that from here and I'm not sure enough of what the problem is to demand that at the other end (could it be a problem with my own scripts?).. btw I like unscientific answers :)
</added>

topr8

7:44 pm on Oct 6, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



i'm with rosswal, restarting the server has cleared this problem for me too.

MozMan

8:17 pm on Oct 6, 2004 (gmt 0)

10+ Year Member



Well, I'm really stumped. Is there any kind of source control in effect? It doesn't sound like it, but if there is, there may be some kind of "checkin" process that needs to be followed... at any rate, that's the only other thing I can think of...

-Moz

macrost

9:04 pm on Oct 6, 2004 (gmt 0)

10+ Year Member



I'm with Moz, if you don't have a check in process for files on your webserver, then IIS may just have been running a bit too long if it is a virtual server. LOL, sorry, it has happened to me before also. I just had tech support just give the server a reboot and everything worked just fine.

SuzyUK

8:45 am on Oct 7, 2004 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Well I'm still stumped, but this morning everything seems to be AOK.. all changes updated and even a few quick tests updated instantly, maybe they restarted the server without telling me?

Thanks for help

Suzy