Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

I have set up a LAMP stack that listens on localhost and serves files from a directory.

I save a html file into my localhost directory, then I try to change it (and I save it again into my localhost directory). However, when I access the file via localhost it shows me the old file without the changes. If I access the file via my home folder it appearers as the current file (with last changes).

Do you know how can I solve this problem? Thanks, berga007

share|improve this question
1  
Maybe related to caching in your browser? If you use Chrome open up the Developer Tools (F12) and Disable Cache and try again. –  latz Aug 22 '13 at 12:04
    
I'm actually using Mozila firefox (the default browser) it works the same way? –  berga007 Aug 22 '13 at 12:17
add comment

1 Answer

up vote 0 down vote accepted

It sounds like a caching problem to me, depending on the changes you're making. If you're making CSS or JS changes, then, yes, it's probably caching the page. Then, when you go to a different URL, your browser is pulling a "new" page. If you are changing CSS or JS, here's an article from Mozilla about clearing your cache in FF. http://support.mozilla.org/en-US/kb/how-clear-firefox-cache

If you're making other changes (such as changing the wording or layout), it may be something else. Have you tried to edit and save your HTML file directly from the localhost directory? Or do you edit it, save it elsewhere, then copy it back into your localhost directory?

share|improve this answer
    
The problem was all about the cahce. I press CTRL F5 and the changes were apllied correctly. –  berga007 Aug 22 '13 at 13:07
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.