Solved

WAMP LOCALHOST Browser Refresh

Posted on 2010-09-03
18
1,362 Views
Last Modified: 2012-06-27
Working in Dreamweaver CS3 and WAMP localhost, page refrsh in any browser (FF, Chrome, IE8, safari) doesn't work... the only way I can see the updated page is to open it directly from a folder or load a new version.

I could be wrong but after installing some software and uninstalling it I believe there was some message about windows clear cache dll or reg or smg is missing and I think this is at the time when the problem started. I running windows 7 and the problem works with both html and php pages static and dynamic pages.

I did a Norton IS 2010 scan with no viruses found.

Really appreciate any pointers.

Thanks.
0
Comment
Question by:onetoomany
  • 9
  • 6
  • 2
18 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
Are you doing a simple F5 refresh or a shift-refresh to force the browser to not used the cached page?
0
 

Author Comment

by:onetoomany
Comment Utility
Thanks for the reply... tried both - ctrl f5 only works once... but doesn't update after sub sequent changes.
any ideas?
0
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
Should be shift, not control?  Is this with all browsers?
0
 

Author Comment

by:onetoomany
Comment Utility
Yes, all browsers... shift and ctrl and shift+ctrl + prayers... nothing.
0
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
Okay, so you create/update the page in DW.  You save the file, presumably.  Is the DW local folder the same as WAMP's public web root or do you have to publish it to a new location?
0
 

Author Comment

by:onetoomany
Comment Utility
yes, using WAMP non default directory... no error or problems loading pages.. just refreshing...

So if I pen a html page direly (file:///...) edit and save then refrsh.. page is refreshed.. but when open in localhost, changes are not refreshed until the page is reloaded.

0
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
>> changes are not refreshed until the page is reloaded.

And reloading consists of closing the browser, then reopening and browsing back to the page in question, right?
0
 

Author Comment

by:onetoomany
Comment Utility
nope... just refreshing.

so if same page is open in browser - 1st is through localhost, 2nd fileopne (file///)

In dreamweaver, edit page > save > browser refresh and repeat.

localhost page does not refresh. directly open page does.

Doesn't matter if only one is open etc. Ofcourse remote pages like this one work fine.

0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
It's definitely some sort of caching issue and probably in the WAMP settings somewhere.  It could also be due to Norton paranoia over the http://localhost/ (whereas file:/// is considered "safer")

Try this:

1) Disable Norton to see if that improves the situation
2) If not, download XAMPP instead of WAMP and try that.  The settings are tweaked a little differently and I find XAMPP to be the easier of the two to deal with.
0
 

Author Comment

by:onetoomany
Comment Utility
not norton - trying xampp.. while I'm doing that - easy way to set root dir in xampp?
0
 
LVL 70

Expert Comment

by:Jason C. Levine
Comment Utility
It's in the configuration pages of XAMPP when you first run it.  Can set the public web root from there.
0
 

Author Comment

by:onetoomany
Comment Utility
Jason - Thanks for your help... but even with Norton Disables.. WAMP uninstalled and XAMPP installed.. pages will still not refresh when viewed through local host.
0
 
LVL 8

Expert Comment

by:allen-davis
Comment Utility
Just as a trouble-shooting option, what if you update the page, then stop/start XAMPP and then try to reload the page.  That would at least let us know if the caching is happening in the browser or in the web server.
0
 

Accepted Solution

by:
onetoomany earned 0 total points
Comment Utility
Thanks very much for the Input, this issue may now be resolved but watching it for a while:

In Dreamweaver - Export all Site Definitions, restart and create new ones.
In WAMP or XAMPP, Rename root directory and create new or chnage root directory.

Restart all. In my case, this may make some sense with many site folders and some nested definitions. At this it, it appears to be working.

Will post again in the next day or so.
Thanks Agin.

0
 

Author Comment

by:onetoomany
Comment Utility
(... In the process of trying to resolve, I came across my new favorite toolet - xrefresh server and xrefresh FF extension.. the perfect revenge for browser refresh. recommend...)
0
 
LVL 8

Expert Comment

by:allen-davis
Comment Utility
You might also look at setting the HTTP headers for last modified and expires to force the browser to use HTTP headers to always reload the pages. Are you writing dynamic pages in PHP?  Try this on a page at the very top before any other content, template, etc is loaded to test.  
<?php
header("Cache-Control: no-cache, must-revalidate"); // HTTP/1.1
header("Expires: Sat, 26 Jul 1997 05:00:00 GMT"); // Date in the past
?>  
Info from: http://php.net/manual/en/function.header.php
0
 

Author Comment

by:onetoomany
Comment Utility
ofcourse.. but that's not the problem as remote web server pages refresh properly.
0

Featured Post

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.

Join & Write a Comment

One of the features I've come to appreciate about Windows 7 and Windows Server 2008 R2 is the ability to pin applications to the task bar. As useful a feature as I've found this, it does have some quirks.  For example, have you ever tried pinning an…
Article by: kevp75
Hey folks, 'bout time for me to come around with a little tip. Thanks to IIS 7.5 Extensions and Microsoft (well... really Windows 8, and IIS 8 I guess...), we can now prime our Application Pools, when IIS starts. Now, though it would be nice t…
In this Micro Tutorial viewers will learn how to use Boot Corrector from Paragon Rescue Kit Free to identify and fix the boot problems of Windows 7/8/2012R2 etc. As an example is used Windows 2012R2 which lost its active partition flag (often happen…
This Micro Tutorial will go in depth within Systems and Security in Windows 7 and will go into detail regarding Action Center, Windows Firewall, System, etc. This will be demonstrated using Windows 7 operating system.

763 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

6 Experts available now in Live!

Get 1:1 Help Now