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 Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to Prevent Caching of SWF Files?

Status
Not open for further replies.

TulsaJeff

Programmer
Jan 29, 2001
870
US
I update some of my clients websites several times weekly. For some odd reason it always takes a day or two for the updated version to show up on my own computer. And yes... I do empty the cache...cookies,history,temporary internet files and the whole works.

I put the following code (upon microsofts recommendation) in my html to prevent caching in IE and NN:

<META HTTP-EQUIV=&quot;Pragma&quot; CONTENT=&quot;no-cache&quot;>
<META HTTP-EQUIV=&quot;Expires&quot; CONTENT=&quot;-1&quot;>

It is still caching everything.

Is there something about this I need to know in order for it to work properly? It's driving me nuts! I have to call someone who has not pulled the site up in a few days and have them check to make sure things are working correctly.

Ideas anyone? Ya' Gotta Love It!
sleepyangelsBW.jpg
 
Hi Tulsa,
Have a look at this:

Read: How to prevent caching of swf files

There's this note that may apply to you:

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


Also I remember davdesign mentioning something about this! Do a seach on &quot;cache&quot; or &quot;caching&quot;, it seems his method worked for him!

On your own machine, usually pressing Shift->Refresh will insure you get the file from the server and not the one in the cache!

Hope this helps!

;-)ldnewbie
 
regarding the Shift+Refresh ... I constantly try using that also and it still pulls the cached version.

I will look into the cache control header...

Thanks for the tip! Ya' Gotta Love It!
sleepyangelsBW.jpg
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top