Prevent Caching Pages

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

    Prevent Caching Pages

    i wanna knw is it possible 2 prevent caching pages....

    i have no problem with this....
    but it wont show all of letters tht i use (š đ ž č ć) when users posting replys/inboxing etc.... it shows sum strange hieroglyphics when š đ ž č ć r in use... lol
    Code:
    header("Content-type: text/vnd.wap.wml");
    header("Cache-Control: no-store, no-cache, must-revalidate");
    echo("<?xml version=\"1.0\"?>");
    echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
    so i changed lil bit
    Code:
    header("Content-type: text/vnd.wap.wml; charset=utf-8");
    header("Cache-Control: no-store; no-cache; must-revalidate");
    echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
    echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
    and tht way letters š đ ž č ć r visible normal at all browsers....

    but then starts the problem.... pages r caching as hell.... u read the PM but it stays as unreaded, u post a reply but theres no reply..... i mean reply is posted sucesfully, but tht page i cached and u always get the same old page....lol


    so is there a way 2 prevent caching pages??
    sigpiceeeeerrr....

    #2
    try

    Code:
    header("Cache-Control: no-cache, must-revalidate");
    header("Pragma: no-cache");
    header("Content-type: text/vnd.wap.wml"); 
    echo "<?xml version=\"1.0\"?>"; 
    echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; 
    echo "<wml>";
    Want something coded email me at sales@webnwaphost.com for a prices.




    Comment


      #3
      try

      Code:
      header("Cache-Control: no-cache, must-revalidate");
      header("Pragma: no-cache");
      header("Content-type: text/vnd.wap.wml"); 
      echo "<?xml version=\"1.0\"?>"; 
      echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\" \"http://www.wapforum.org/DTD/wml_1.1.xml\">"; 
      echo "<wml>";
      [/b]
      cn i use it like this:
      Code:
      header("Content-type: text/vnd.wap.wml; charset=utf-8");
      header("Pragma: no-cache");
      header("Cache-Control: no-store; no-cache; must-revalidate");
      echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
      echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
      cuz without UTF-8 encoding im unable 2 get š đ ž č ć letters
      sigpiceeeeerrr....

      Comment


        #4
        try changing this
        echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");

        to this
        echo"<?xml version=\"1.0\" encoding=\"UTF-8\"?>";

        Comment


          #5
          š đ ž č ć r[/b]
          Evin that is strange to me

          Click here!!!

          Comment


            #6
            Evin that is strange to me[/b]
            č š ž ć đ

            aka

            ccaron
            scaron
            zcaron
            etc

            mostly used in former yugoslavia republic

            some other countrys use those chars too
            It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
            ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
            ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
            キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

            Comment


              #7
              cn i use it like this:
              Code:
              header("Content-type: text/vnd.wap.wml; charset=utf-8");
              header("Pragma: no-cache");
              header("Cache-Control: no-store; no-cache; must-revalidate");
              echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
              echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
              cuz without UTF-8 encoding im unable 2 get š đ ž č ć letters[/b]
              try it a dont c why not
              Want something coded email me at sales@webnwaphost.com for a prices.




              Comment


                #8
                cn i use it like this:
                Code:
                header("Content-type: text/vnd.wap.wml; charset=utf-8");
                header("Pragma: no-cache");
                header("Cache-Control: no-store; no-cache; must-revalidate");
                echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
                cuz without UTF-8 encoding im unable 2 get š đ ž č ć letters[/b]

                try it a dont c why not[/b]
                it wont work correctly...
                i use that.. and alesh complains that
                he got problems whenever he visits my site LOL
                It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                Comment


                  #9
                  it wont work correctly...
                  i use that.. and alesh complains that
                  he got problems whenever he visits my site LOL[/b]
                  actualy it works...... tht pragma **** prevent caching pages..... even with included UTF-8 encoding lol
                  even with older phns is fine
                  sigpiceeeeerrr....

                  Comment


                    #10
                    u may use this

                    header("Cache-Control: no-cache, must-revalidate"); // Prevent caching, HTTP/1.1
                    header("Pragma: no-cache");
                    //header(&#39;Content-type: application/vnd.wap.xhtml+xml&#39;);
                    echo "<?xml version=\"1.0\"?>";
                    echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";

                    Comment


                      #11
                      it wont work correctly...
                      i use that.. and alesh complains that
                      he got problems whenever he visits my site LOL[/b]
                      whats your site m8 ?
                      Want something coded email me at sales@webnwaphost.com for a prices.




                      Comment


                        #12
                        actualy it works...... tht pragma **** prevent caching pages..... even with included UTF-8 encoding lol
                        even with older phns is fine[/b]
                        hmm.. how come you got problems on my site then?? lol
                        It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                        ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                        ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                        キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                        Comment


                          #13
                          u may use this

                          header("Cache-Control: no-cache, must-revalidate"); // Prevent caching, HTTP/1.1
                          header("Pragma: no-cache");
                          //header(&#39;Content-type: application/vnd.wap.xhtml+xml&#39;);
                          echo "<?xml version=\"1.0\"?>";
                          echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";[/b]
                          yeap use this and insert into url time...as variable.
                          http://ngeo.ro

                          Comment


                            #14
                            yeap use this and insert into url time...as variable.[/b]
                            can you post just simple example on this one?
                            It's better to keep your mouth shut and give the impression that you're stupid, than to open it and remove all doubt.
                            ⓣⓗⓔ ⓠⓤⓘⓔⓣⓔⓡ ⓨⓞⓤ ⓑⓔ©ⓞⓜⓔ, ⓣⓗⓔ ⓜⓞⓡⓔ ⓨⓞⓤ ⓐⓡⓔ ⓐⓑⓛⓔ ⓣⓞ ⓗⓔⓐⓡ !
                            ιη тнєσяу, тнє ρяα¢тι¢є ιѕ α яєѕυℓт σƒ тнє тнєσяу, вυт ιη ρяα¢тι¢є ιѕ тнє σρρσѕιтє.
                            キノgんイノ刀g 4 ア乇ムc乇 ノ丂 レノズ乇 キucズノ刀g 4 √ノ尺gノ刀ノイリ!

                            Comment


                              #15
                              hmm.. how come you got problems on my site then?? lol[/b]
                              cuz u missed this:
                              Code:
                              header("Content-type: text/vnd.wap.wml; charset=utf-8");
                              header("Pragma: no-cache");    <------------------------ without this lil older phns got trouble with cache
                              header("Cache-Control: no-store; no-cache; must-revalidate");
                              echo("<?xml version=\"1.0\" encoding=\"UTF-8\"?>");
                              echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
                              this works just fine, excatly how i wanted

                              ************************************************** **************************
                              Code:
                              header("Cache-Control: no-cache, must-revalidate"); // Prevent caching, HTTP/1.1
                              header("Pragma: no-cache");
                              //header(&#39;Content-type: application/vnd.wap.xhtml+xml&#39;); 
                              echo "<?xml version=\"1.0\"?>";
                              echo "<!DOCTYPE html PUBLIC \"-//WAPFORUM//DTD XHTML Mobile 1.0//EN\" \"http://www.wapforum.org/DTD/xhtml-mobile10.dtd\">";
                              this is no use 4 me...... no uTF-8 encoding..... it wont show letters š đ ž č ć at all phns...

                              ************************************************** ***************************

                              btw @metulj, i think blackhawk thought sumthn like this
                              Code:
                              header("Content-type: text/vnd.wap.wml");
                              header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");                // expires in the past
                                header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");     // Last modified, right now
                                header("Cache-Control: no-cache, must-revalidate");            // Prevent caching, HTTP/1.1
                                header("Pragma: no-cache");
                              print "<?xml version=\"1.0\" encoding=\"utf-8\"?>";
                              echo "<!DOCTYPE wml PUBLIC \"-//WAPFORUM//DTD WML 1.1//EN\"". " \"http://www.wapforum.org/DTD/wml_1.1.xml\">";
                              its from lava chat....
                              sigpiceeeeerrr....

                              Comment

                              Working...
                              X