Nathan.

Yes, the use of a unique query param value for cache busting on any file
(not just swfs) is pretty standard practice. Even calls to aspx/php pages
which return xml etc...

using Javascript (or Flash's) new Date().getTime() on the client-side is a
technique I have been telling everyone to use for many years now, as it
gives you a true millisecond accurate unique number. A lot of people
write pseudo random number generators, but there is always a small chance
that you will generate the same number twice :)


Cheers,
Aran

On Fri, Jan 29, 2010 at 7:19 AM, Nathan Mynarcik <[email protected]> wrote:

> This is vaguely off topic here, but "cache busting" seems like a great
> idea.  Is this widely used in this industry? Is there a more "official way"
> of preventing the cache?
>
> I mainly ask to see if I need to implement this in my development processes
> now going forward.
>
>
> Nathan Mynarcik
> Interactive Web Developer
> [email protected]
> 254.749.2525
> www.mynarcik.com
>
>
> On Thu, Jan 28, 2010 at 2:16 PM, Sam Sherlock <[email protected]>wrote:
>
>> same for me in chrome
>>
>> might be a caching issue
>>
>> a frequent cause of issues. If you have made a mistake that gets cached
>> then when you retest -- even with corrected code the issue may persist
>>
>> cache busting may help (stolen from a prev post by Aran)
>>
>> a) tacking on a querystring param to the swf location
>> like swfobject.embedSWF("tagcloud.swf?r=" + new Date().getTime(), .......
>>
>> now the browser will think its loading a new swf - you can also cache bust
>> inside you swf when loading txt files
>>
>> - S
>>
>>
>>
>>
>> On 28 January 2010 19:49, Nathan Mynarcik <[email protected]> wrote:
>>
>>> I didn't see a problem with any of those links.  Atleast in FireFox they
>>> showed up on first load.
>>>
>>> Nathan Mynarcik
>>> Interactive Web Developer
>>> [email protected]
>>> 254.749.2525
>>> www.mynarcik.com
>>>
>>>
>>>
>>> On Thu, Jan 28, 2010 at 12:44 PM, webhelp 
>>> <[email protected]>wrote:
>>>
>>>> I have been looking all over and trying every fix I can find to get
>>>> rid of the reload/refresh problem.
>>>>
>>>> I am using the swfobject generator so I can make sure I get everything
>>>> right, but still no results
>>>>
>>>> The problem is the page won't show unless you reload it, or when the
>>>> page shows the text link won't show when the page loads, just when you
>>>> reload/refresh the page.  (The text shows if it has already loaded
>>>> earlier).
>>>>
>>>> Here are some sample links that will help explain my situation:
>>>>
>>>> Static example:
>>>> http://www.websitehelpbuilder.info/index.html
>>>> (here's the .txt file that only shows up after you reload the page)
>>>>  http://www.websitehelpbuilder.info/Text29.txt
>>>>
>>>> Dynamic example:
>>>> http://www.websitehelpbuilder.info/index_dynamic.html
>>>> Text file:http://www.websitehelpbuilder.info/Text29.txt
>>>>
>>>> Is there any way to fix this with or without the generator?  Clearly I
>>>> need help with this, and any help will be greatly appreciated.
>>>>
>>>> --
>>>> You received this message because you are subscribed to the Google
>>>> Groups "SWFObject" group.
>>>> To post to this group, send email to [email protected].
>>>> To unsubscribe from this group, send email to
>>>> [email protected]<swfobject%[email protected]>
>>>> .
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/swfobject?hl=en.
>>>>
>>>>
>>>  --
>>> You received this message because you are subscribed to the Google Groups
>>> "SWFObject" group.
>>> To post to this group, send email to [email protected].
>>> To unsubscribe from this group, send email to
>>> [email protected]<swfobject%[email protected]>
>>> .
>>> For more options, visit this group at
>>> http://groups.google.com/group/swfobject?hl=en.
>>>
>>
>>  --
>> You received this message because you are subscribed to the Google Groups
>> "SWFObject" group.
>> To post to this group, send email to [email protected].
>> To unsubscribe from this group, send email to
>> [email protected]<swfobject%[email protected]>
>> .
>> For more options, visit this group at
>> http://groups.google.com/group/swfobject?hl=en.
>>
>
>  --
> You received this message because you are subscribed to the Google Groups
> "SWFObject" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to
> [email protected]<swfobject%[email protected]>
> .
> For more options, visit this group at
> http://groups.google.com/group/swfobject?hl=en.
>

-- 
You received this message because you are subscribed to the Google Groups 
"SWFObject" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/swfobject?hl=en.

Reply via email to