1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Whats going on?!

Discussion in 'BlackHat Lounge' started by HenryHavoc, Jan 13, 2009.

  1. HenryHavoc

    HenryHavoc Jr. VIP Jr. VIP

    Joined:
    Mar 24, 2008
    Messages:
    794
    Likes Received:
    1,531
    Occupation:
    Hustler
    Location:
    Cincinnati
    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:
     
  2. lewi

    lewi Jr. VIP Jr. VIP Premium Member

    Joined:
    Aug 5, 2008
    Messages:
    2,309
    Likes Received:
    818
    clear your cache.... :)
     
    • Thanks Thanks x 1
  3. Olly

    Olly Junior Member

    Joined:
    Jun 28, 2007
    Messages:
    153
    Likes Received:
    246
    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.
     
  4. HenryHavoc

    HenryHavoc Jr. VIP Jr. VIP

    Joined:
    Mar 24, 2008
    Messages:
    794
    Likes Received:
    1,531
    Occupation:
    Hustler
    Location:
    Cincinnati
    I swear if this works...

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

    *slams face on keyboard*
     
    • Thanks Thanks x 1
  5. Olly

    Olly Junior Member

    Joined:
    Jun 28, 2007
    Messages:
    153
    Likes Received:
    246
    Or yes, as lewi much simpler put... clear your cache :p
     
  6. The Scarlet Pimp

    The Scarlet Pimp Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 2, 2008
    Messages:
    788
    Likes Received:
    3,129
    Occupation:
    Chair moistener.
    Location:
    Cyberspace
    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!).
     
    • Thanks Thanks x 2
  7. The Scarlet Pimp

    The Scarlet Pimp Jr. VIP Jr. VIP Premium Member

    Joined:
    Apr 2, 2008
    Messages:
    788
    Likes Received:
    3,129
    Occupation:
    Chair moistener.
    Location:
    Cyberspace
    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 Thanks x 1
  8. HenryHavoc

    HenryHavoc Jr. VIP Jr. VIP

    Joined:
    Mar 24, 2008
    Messages:
    794
    Likes Received:
    1,531
    Occupation:
    Hustler
    Location:
    Cincinnati
    Thanks for that code bro!
     
  9. chickuzt

    chickuzt BANNED BANNED

    Joined:
    Apr 19, 2008
    Messages:
    112
    Likes Received:
    97
    Yah, next time just hit the refresh button. It should reload all the applets and images, css, the whole nine yards.
     
  10. HenryHavoc

    HenryHavoc Jr. VIP Jr. VIP

    Joined:
    Mar 24, 2008
    Messages:
    794
    Likes Received:
    1,531
    Occupation:
    Hustler
    Location:
    Cincinnati
    I did :eek: about 500 times.
     
  11. Olly

    Olly Junior Member

    Joined:
    Jun 28, 2007
    Messages:
    153
    Likes Received:
    246
    Yeah it needs to be a CTRL + F5 rather than just an F5 :p
     
  12. scb335

    scb335 BANNED BANNED

    Joined:
    Mar 5, 2008
    Messages:
    272
    Likes Received:
    438
    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