Whats going on?!

HenryHavoc

Senior Member
Joined
Mar 24, 2008
Messages
1,166
Reaction score
2,215
Alright, this is weird.

I just made some minor changes too one of my many sites, and when I loaded the page in my browser, nothing was changed. (My site is hxxp://www.factsa*boutmarijuana.net)

I was puzzled, so I re-uploaded via FTP, and it did indeed get transfered over.

Then I went to the site index page (hxxp://www.factsa*boutmarijuana.net/index.html) and it loaded it correctly!!

What's going on?! :yield:
 
What did you make changes to?

If you changed some images, css and stuff like that it wont show right away. It will have stored the previous in your cache so it loads that instead (makes things load faster), and you wont see the changes right away.

When you make changes, when you refresh your page, instead of just pressing F5, press CTRL + F5, that way it loads the page but forces the browser to re-load all the images, css etc as if the cache was empty.
 
I swear if this works...

It works. Thanks lewi - you're a god.

*slams face on keyboard*
 
Or yes, as lewi much simpler put... clear your cache :p
 
one trick that prevents this from happening is to use the extension, ".php"
instead of ".html" on all of your pages. this makes the page auto-refresh every
time you view it. in fact i never use ".html" anymore because of this feature.

or you can put the "no cache" code in your meta tags (be very careful with this one, and
never ever use it on a form page!).
 
forgot to mention that if you don't have the time to rename all of your pages,
you can stick a code into your htaccess that will tell the server to auto-refresh
your html pages. basically it tells the server to parse html as php...

try this code in your .htaccess file (you may have to tweak it depending on your host):


AddHandler application/x-httpd-php5 .html .htm
 
Thanks for that code bro!
 
Yah, next time just hit the refresh button. It should reload all the applets and images, css, the whole nine yards.
 
Yeah it needs to be a CTRL + F5 rather than just an F5 :p
 
Or just add any false variable to the URL which forces the browser not to serve a cached version of the page.

Example:
Code:
instead of www.YOURDOMAIN.com
put in www.YOURDOMAIN.com?anything_here
 
Back
Top