123
-=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- (c) WidthPadding Industries 1987 0|373|0 -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=- -=+=-
Socoder -> Off Topic -> Localhost issues

Mon, 09 Jan 2012, 12:55
spinal
why on earth is my localhost site no actually updating when i’m changing it!!!!!! stupid computer.

-=-=-
Check out my excellent homepage!
Mon, 09 Jan 2012, 12:55
Jayenkai
*shrugs* Localhost shouldn't do that, surely!? Maybe check the settings.. Maybe has a crappy cache setting or something..

-=-=-
''Load, Next List!''
Mon, 09 Jan 2012, 13:32
spinal
meh, what I'm doing right now doesn't really need to come from localhost, only when I transfer it to the iPad, and that seems to work right, just viewing it on the same laptop it doesn't actually change (weird).

-=-=-
Check out my excellent homepage!
Mon, 09 Jan 2012, 13:39
JL235
It could be that you have the HTML set to be cached in your htaccess file. Try a ctrl+r (forced refresh) in your browser, and if it starts to update correctly, then your sites caching is to blame.

It might even be that you don't have any information about caching HTML, at all, and so the browser is caching it for a few minutes by default (since it doesn't know what else to do). Opera is notorious for aggressively caching files, and Chrome is known to have falty caching (where it sometimes even uses cached files during a forced refresh).
Mon, 09 Jan 2012, 13:51
HoboBen
Some, and I would hope most, browsers don't cache local files (why would they?)

However, if you're accessing it through a hostname that resolves to a 192.168.1.x number rather than 127.0.0.1 it may treat it as non-local, although localhost is usually the latter number.

-=-=-
blog | work | code | more code
Mon, 09 Jan 2012, 17:43
JL235
HoboBen
Some, and I would hope most, browsers don't cache local files (why would they?)

What if your using a local proxy? Then not caching could end up being quite expensive.

It would also mean you would be different behaviour between developing a site locally, and on live.

I know for certain that most browsers do cache files from localhost, as I've experienced my own caching bugs whilst developing a site.