Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

WAMP LOCALHOST Browser Refresh

Posted on 2010-09-03
18
Medium Priority
?
1,523 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 9
  • 6
  • 2
18 Comments
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 33599602
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
ID: 33599672
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
ID: 33599686
Should be shift, not control?  Is this with all browsers?
0
Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

 

Author Comment

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

Expert Comment

by:Jason C. Levine
ID: 33599720
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
ID: 33599745
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
ID: 33599766
>> 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
ID: 33599793
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
 
LVL 70

Expert Comment

by:Jason C. Levine
ID: 33599853
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
ID: 33599882
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
ID: 33599899
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
ID: 33600471
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
ID: 33601961
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
ID: 33601982
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
ID: 33601985
(... 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
ID: 33602009
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
ID: 33602015
ofcourse.. but that's not the problem as remote web server pages refresh properly.
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The recent Microsoft changes on update philosophy for Windows pre-10 and their impact on existing WSUS implementations.
There are many software programs on offer that will claim to magically speed up your computer. The best advice I can give you is to avoid them like the plague, because they will often cause far more problems than they solve. Try some of these "do it…
This Micro Tutorial will teach you how to change your appearance and customize your Windows 7 interface to your unique preference. This will be demonstrated using Windows 7 operating system.
The viewer will learn how to successfully download and install the SARDU utility on Windows 7, without downloading adware.
Suggested Courses

598 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