Reloading Website??

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • MediaXim
    New Member
    • Sep 2008
    • 5

    Reloading Website??

    I have created a website, however, when I make changes to it and upload to a hosting site it doesn't load the changes. Instead it loads the cache memory of the website. Is there a way of getting around this??
  • joedeene
    Contributor
    • Jul 2008
    • 579

    #2
    Unless you made a full flash website, I think this is in the wrong forum, but anyways, most browsers have a refresh button, or F5 also, and try clicking that and it should check the site again, and are you putting the uploaded site or flash file into the sites directory exactly where it was before?

    joedeene

    Comment

    • MediaXim
      New Member
      • Sep 2008
      • 5

      #3
      Sorry, should have said. Yes it is a full flash site, created in Flash 8. I no about the refresh button, but in Firefox this still doesn't make a difference as it loads the website from memory. The site is copied straight to the hosting site in the same location as before, overwriting the old data.

      Is there a way of achieving a clear cache so that other users dont have to clear there cache to see the upload?

      Comment

      • joedeene
        Contributor
        • Jul 2008
        • 579

        #4
        No, you cannot clear the user's cache directly through flash, but there are ways to "prevent" the caching of the .swf file. Take a look of of this link off Adobe's Help Site. Let me know, if that works.

        joedeene

        Comment

        • MediaXim
          New Member
          • Sep 2008
          • 5

          #5
          Ok so I have to insert this into the HTML page for each one created. Fingers crossed it should fix it, however, when i then publish the document from Flash it doesn't keep the changes does this mean that it will need to be entered each time?

          Comment

          • joedeene
            Contributor
            • Jul 2008
            • 579

            #6
            What changes? the flash file changes? I thought you wanted the new changes to the flash file, if any to show. So basically, they're downloading the file each time...

            joedeene

            Comment

            • MediaXim
              New Member
              • Sep 2008
              • 5

              #7
              Originally posted by joedeene
              What changes? the flash file changes? I thought you wanted the new changes to the flash file, if any to show. So basically, they're downloading the file each time...

              joedeene
              For example........ .. each time I update the website I 'Publish' the Flash document to create a HTML document. Now when that is Published the Flash file overwrites th changes in the HTML document e.g. where you put the coding from that Adobe site.

              Does this mean that this code has to be entered each time the file is updated or can it be inserted into the Flash actionscript so this does not have to be done?

              Comment

              • asedt
                New Member
                • Jun 2008
                • 130

                #8
                Originally posted by MediaXim
                For example........ .. each time I update the website I 'Publish' the Flash document to create a HTML document. Now when that is Published the Flash file overwrites th changes in the HTML document e.g. where you put the coding from that Adobe site.

                Does this mean that this code has to be entered each time the file is updated or can it be inserted into the Flash actionscript so this does not have to be done?
                As I understand you, you are generate your HTML file with some Flash software, and as long as you can't change whats included when that is done you have to put it in yourself afterwards. But look if there is some template or something that is generating the HTML, then you can change it.

                Comment

                • MediaXim
                  New Member
                  • Sep 2008
                  • 5

                  #9
                  Originally posted by asedt
                  But look if there is some template or something that is generating the HTML, then you can change it.

                  Template????? There is no template in Flash 8. You simply create the HTML file by going to: FILE>> PUBLISH. Then this will create the HTML file, you understand????

                  Comment

                  • joedeene
                    Contributor
                    • Jul 2008
                    • 579

                    #10
                    Originally posted by MediaXim
                    Template????? There is no template in Flash 8. You simply create the HTML file by going to: FILE>> PUBLISH. Then this will create the HTML file, you understand????
                    I would not directly publish the .html file, i would create the .swf flash file and then set it to a certain directory, and embed it with it centered, and as its picking up the flash file from the directory, the <head> tag will always be the same. Do you understand what I'm suggesting? If not I'll be glad to show an example, or source code.

                    joedeene

                    Comment

                    • asedt
                      New Member
                      • Jun 2008
                      • 130

                      #11
                      Originally posted by MediaXim
                      Template????? There is no template in Flash 8. You simply create the HTML file by going to: FILE>> PUBLISH. Then this will create the HTML file, you understand????
                      I dont know anything about this but i think it is. And a google makes the trick:




                      "You can easily use the same template, change the settings, and publish a new HTML page. If you're proficient in HTML, you can also create custom templates using any HTML editor. Creating a template is the same as creating a standard HTML page, except that you replace specific values pertaining to a Flash SWF file with variables that begin with a dollar sign ($). "

                      Comment

                      • bnashenas1984
                        Contributor
                        • Sep 2007
                        • 257

                        #12
                        Hi
                        I have my own way to solve this problem..

                        Here's what I do:
                        Lets say you have a flash file (www.yourdomain.com/flashfile.swf) which is called by a HTML file (index.html).
                        When you publish your files change (index.html) to (index.php) then open it in a text editor and change the URL of your flash file to something like this:

                        Code:
                        www.yourdomain.com/flashfile.swf?rnd=<?PHP print date("U"); ?>
                        This PHP code generates a 10 digit number of seconds past since (January / 1 / 1970) which helps you prevent the browser to show old versions of files.

                        By the way , this could be done by any other server side scripting languages like asp etc.

                        Hope this helps you

                        Comment

                        Working...