What is the problem with this..page always refresh when you back(im newbie)

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    What is the problem with this..page always refresh when you back(im newbie)

    i have a modified lava script... and im using XAMMP for testing the script..

    i uploaded it to 20x.cc free host..

    my question is..

    why the page is always refresh if you press backspace or back?..
    for example.
    you are in index.php and you go to inbox.php
    then if you press BACKSPACE (pc) or GO BACK one page located at upper left of the browser..(<)
    the page will refresh again.. why?..no history?.. ahmmm
    is there a problem with the header??..

    <?php
    header("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");
    ?>
    <?php
    include("core.php");
    include("config.php");
    check_injection();
    echo "<?xml version=\"1.0\" encoding=\"ISO-8859-1\"?>";
    echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\"\"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
    echo "<html xmlns=\"http://www.w3.org/1999/xhtml\">";

    that's my header..

    plss help me.. it is too slow when the page history always refresh..

    #2
    remove:
    PHP Code:
    <?php
    header
    ("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");
    ?>

    Comment


      #3
      i already move that header but the page is still refreshing when i press BACK..

      what is the problem?

      Comment


        #4
        most likely it "cached" lmao...

        just remove that stuff n refresh a few times... if you surfing with tricks, it'll take longer to get updated... (that stuff sometimes goes via caching servers etc...)

        also check in your core n config to check there's no headers set there too...
        C3 Themes: http://c3themes.wen.ru/index.html
        Find Files: http://mystarter.tk/?goto=X-search

        Comment


          #5
          and i know it is in cached.. BUT!!..

          i tried to put the header of one of my script that doesn't refresh when you back....

          i put it on my new script..

          but its still refresh..

          i think the problem is in the host or in my server? 20x.cc?.. what do you think?..

          Comment


            #6
            check that you remove the
            header("Cache-Control: no-cache, must-revalidate");
            header("Pragma: no-cache");
            from every php file... this will create problems for you though, cause it will eventually stop checking for new messages, etc

            that's why it's set not to cache so the page always gets an updated copy...

            my advise is to prevent the reloading thing, use opera mini... cause then you can go back a page or two without having to reload pages...
            changing the headers will create more problems in the long run...
            (ie: i tried removed them before, but ended up putting them back again)
            C3 Themes: http://c3themes.wen.ru/index.html
            Find Files: http://mystarter.tk/?goto=X-search

            Comment

            Working...
            X