Jump to content


Photo

RELOAD WEBSITE?


  • Please log in to reply
6 replies to this topic

#1 MediaXim

MediaXim

    Young Padawan

  • Members
  • Pip
  • 8 posts

Posted 14 October 2008 - 09:49 AM

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??

#2 vvtopkar

vvtopkar

    P2L Jedi

  • Members
  • PipPipPip
  • 532 posts
  • Gender:Male
  • Location:3rd Planet from the Sun

Posted 14 October 2008 - 07:41 PM

Are you pressing the reload button on your browser? That might be the problem, if not, just clear the cache on your browser. For fiirefox I believe it is Ctl + Shft + Delete

#3 MediaXim

MediaXim

    Young Padawan

  • Members
  • Pip
  • 8 posts

Posted 15 October 2008 - 02:51 AM

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.

As this will be a commercial website, is there a method in which I can clear the cache of the Internet Browser using Actionscript? I no IE does this on the fly as there default settings are already set to achieve this. Or is it just a Firefox bug?

#4 vvtopkar

vvtopkar

    P2L Jedi

  • Members
  • PipPipPip
  • 532 posts
  • Gender:Male
  • Location:3rd Planet from the Sun

Posted 15 October 2008 - 07:26 PM

According to what I hear, its probably a browser bug. Check other browsers on your and other computers to be sure.

#5 dotbart

dotbart

    Young Padawan

  • Members
  • Pip
  • 141 posts
  • Gender:Male
  • Location:Diepenbeek
  • Interests:Webdesign, Webdeveloppement, DJ, ...

Posted 16 October 2008 - 03:55 AM

Either that or your ISP (internet service provider) uses a Proxy wich caches aswell... pretty annoying. Luckily there's a HTML fix!

add this:
<META HTTP-EQUIV="CACHE-CONTROL" CONTENT="no-store, no-cache, must-revalidate, post-check=0, pre-check=0">

in your <head> </head> tags and it should work (atleast if it's a proxy caching problem)



B

#6 MediaXim

MediaXim

    Young Padawan

  • Members
  • Pip
  • 8 posts

Posted 16 October 2008 - 06:29 AM

Yea i saw that on the help guide saying:

<quote>
Use one of three methods to ensure SWF files are downloaded each time:

  • Using the 'Expires' header. The Expires header of an HTML document tells a Web browser when a cached document should expire from the cache. Using a date in the past ensures the document will always be expired.

    Insert the text below between the <HEAD></HEAD> tags of the HTML document containing the embedded SWF. <!-- BEGIN INSERT --><META HTTP-EQUIV="Expires" CONTENT="Mon, 04 Dec 1999 21:29:02 GMT"><!-- END INSERT --> Each and every time this document is requested the browser will notice that the cached version has expired and will download the file from it's server of origin.
  • Using the Pragma: No-Cache header. This code directs the browser to not cache the document at all.

    Insert the following text after the closing </BODY> tag of the HTML page containing the embedded SWF. <!-- BEGIN INSERT --><HEAD><META HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE"></HEAD><!-- END INSERT -->Note: the Pragma: No-Cache header does not work with Internet Explorer 5. Microsoft recommends using the Cache-Control header, instead. See Microsoft's article on this subject.
  • When linking between HTML pages, it's possible to force the linked page to be loaded from it's server of origin and not from the browser cache. To do this simply place a query-string operator, ?, followed by a number on the end of the link URL.

    For example, if one HTML page contains a link to another page called 'stockPrices.htm', then to force the browser to download the latest version of that page from the Web server set up the link in the HTML page like this: <A HREF="stockPrices.htm?1">Current stock prices</A>
</quote>

However, another pretty annoying function is that when you 'Publish' the website from Flash it overwrites the data. So.............everytime you update a website the HTML code has to be re-entered.

#7 dotbart

dotbart

    Young Padawan

  • Members
  • Pip
  • 141 posts
  • Gender:Male
  • Location:Diepenbeek
  • Interests:Webdesign, Webdeveloppement, DJ, ...

Posted 28 October 2008 - 10:03 AM

yep indeed it does.
Unless in you Publish Settings you turn off HTML when you've got the HTML right. After that it just update the SWF :-)




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users