Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

guys explain to me.... 1

Status
Not open for further replies.

coldfused

Technical User
Jan 27, 2001
2,442
US
sometimes when i use aol and view a site that i'm working on it will pull up a version of the site that is about a week old..not showing any of the new changes..and most of the time the files that it shows are no longer at the site..the cache has been cleared of all files..but it still shows this stupid file that has not been there for over a week?.go to ie and it always runs fine..don't understand cause i know aol's default is ie..what gives?
e.gif


carlsatterwhite@endangeredgraphics.com
 
Don't know if it would change anything using AOL... But you can allways try one of the following methods while testing.
If it does work with AOL, you may want to remove the <meta> tag, once you're finished testing, to avoid users having to re-download your movies each time they visit one of your sites.



How to prevent caching of swf files
Product: Flash
Platform: All
Versions: all
ID: 14743


Web browser caching
SWFs, like other documents and media retrieved by a Web browser, are often saved, or cached, locally on the user's hard drive. The next time that media is requested the Web browser may load the file from the cache instead of downloading it over the network. This might be desirable for a Flash movie whose content doesn't change often but undesirable for SWFs that are updated frequently with new content or information.

Using the following techniques, SWFs can be forced to expire immediately from the Web browser's cache or the browser can be forced to re-download the media upon every attempt to access it.

Note: The META tags used below will only work with browsers that support these tags.

Use one of three methods to ensure SWF files are downloaded each time: 1 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=&quot;Expires&quot; CONTENT=&quot;Mon, 04 Dec 1999 21:29:02 GMT&quot;>
<!-- 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.

2 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=&quot;PRAGMA&quot; CONTENT=&quot;NO-CACHE&quot;>
</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.

3 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=&quot;stockPrices.htm?1&quot;>Current stock prices</A>



Additional information
Many authors may choose to use both the first and second methods listed above, to ensure that the page both expires and is not cached.
- From Macromedia.com

;-)
 
thank old..will try
e.gif


carlsatterwhite@endangeredgraphics.com
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top