Need to clear cache to see dynamic changes?

I have a Flash site/movie that loads several JPG's via
button.
I'm using loadMovie.
Client is saying that he has to clear his cache to see
chaqnges when replacing or updating these images.
Same is happening on some dynamivc text files.
I should know this by now but....
Why and can I avoid this?
Thanks in adavance. Client is asking.

Leo,
> I have a Flash site/movie that loads several JPG's
> via button.
>
> Client is saying that he has to clear his cache to see
> chaqnges when replacing or updating these images.
Yup, this happens. :-/
> I should know this by now but....
>
> Why and can I avoid this?
The theory behind cacheing is actually a good thing. After
all, why
waste network traffic if the user already has the file,
right? The trouble
is, browsers don't always seem able to know when a file is
new. It may be
due to the slight differences in your clock and your client's
clock,
especially if you're uploading and checking these in a very
quick
turnaround.
The solution is to "trick" your browser into thinking it's
requesting a
new file. One way to do this is to append a query string to
the end of your
requests for external files.
In the loadMovie() parameter that specifies the URL, do
something like
this ...
"blah/blah/sample.jpg?ver=001"
... which essentially appends a fake variable, ver (for
version), to your
request. When you make a change, update that 001 to a 002,
and so on.
Pretty slick. I would also do this in the HTML that actually
embeds the
SWF.
"blah/blah/sample.swf?ver=001"
... in both the object and embed tags.
If you really want to get fancy, use the Math.random()
method to
generate a new number every time. In your ActionScript ...
"blah/blah/sample.jpg?ver=" + Math.random()
... but remember, that means your client will re-download
this file *every
time*. That may be what you want during testing, but it's
almost certainly
not what you want when the project is complete -- so don't
forget to remove
this trick later.
David
stiller (at) quip (dot) net
Dev essays:
http://www.quip.net/blog/
"Luck is the residue of good design."

Similar Messages

  • Clear cache to see changes?

    Hi,
    I'm finding that when I re-publish my blog, I have to clear Firefox's cache in order to actually see the changes.
    I'm getting quite a few visitors so far and I'm guessing that some of them are returning readers. What if they can't see the changes as they return?
    Is this something that I can avoid?

    No, you can't avoid this. It seems to me to mainly be an issue with the computer your editing on. When I open my site from a different computer after making changes it seems to be fine ( even when that computer has the site cached) It may happen sometimes, but there is nothing that I know of that you can do about it.
    David
    ibook & imac   Mac OS X (10.4.8)  

  • Do you need to clear cache everytime it gets full?

    Just seeing if there is benefit to clearing cache everytime it gets full?

    Well; if you fill a glass with water, how much more can you
    put in the glass? Answer, It's already full. You probably have
    a problem with the cache cleaning itself out of outdated or
    old information. Check your settings.

  • UIX form need to clear cached data within session

    HELP! I have some UIX forms created with JHeadStart, thay work fine except but when the underling table data changes (from another user session or an update trigger from different table) the forms will NOT show refreshed data, unless I delete my browser session cookie. Is there one place to clear the cache, and force the data to be reloaded each time it’s displayed?
    JDeveloper 10.1.2
    JHeadStart 10.1.2
    Thanks, Craig S.
    Message was edited by:
    user503876

    In your struts diagram, rightclick the page and pick 'goto code'
    This will overwrite your data action. There overwrite the method you use, most likely onCommit(....)
    Use the appmodule to find your viewobjects there and clear the cache.

  • Error message says "clear cache"

    I have Lightroom 3.6. My desktop computer recently had to go to the recycling so had to load everything from scratch onto a laptop. When I open Lightroom I get an error message that I need to clear cache. I am unable to see Bridge and need to use it.

    Tools > Options > Network (tab) > "Clear Now" buton

  • Please Help!!!!!dynamically changing a flash movies size...

    Hi i'm working on my final year dissertation and have become
    intensely stressed out/frustrated & almost mental in achieving
    this particular aim!!!!
    what i need to know is how to
    dynamically change a flash movies document size in real time,
    without squashing or stretching the content,much like the banner
    adds frequently seen on hotmail by companies such as orange,lexus
    etc.. where the flash movies size expands on interaction
    Help on this will be greatly greatly appreciated!!
    Thank you.

    RE: "P.S. I  found it aggravating that I couldn't copy and paste text  here, it wanted me to insert as a link or an image, how do you insert plain  text?"
    I take it you tried using the "right click" menu?   That doesn't seem to work, as you noted, but, you should be able to paste text by pressing your CTRL key  and while holding it down, press the "V" letter  key.
    CTRL + C = COPY
    CTRL + X = CUT
    CTRL + V = PASTE
    HTH,
    Ortho_Fan

  • Dynamically change the binding of a field

    Hi,
    I've been looking all over the internet for 2 days to find the answer to my question, but I couldn't get any information on my problem. Here's what i'm trying to do :
    Based on a checkbox in my form, I want to export or I don't want to export a field to a XML document.
    My checkbox is working properly and I got the Send button with the XML working too. I only need to find a way to dynamically change the binding property of my field. I've read some informations with the ".bind.match", but I can't seem to make it work.
    I'm using Windows XP, LiveCycle Designer ES2 v.9.0 and I have to run the form in Reader 8.0.
    Thanks alot for your help, it's greatly appreciated.
    Jonathan

    Hi,
    the binding cannot be changed at runtime.
    You can use the checkbox to delete the value of the field so the exported xml contains an empty tag.
    Or you try to delete the data node of the desired field in the data DOM (xfa.datasets).

  • LOVE Firefox! I have just launched a website. One designer told me it takes 7-10 days for any changes to appear. Why? I have cleared caches and cookies etc. I need to be more responsive than 7-1o days. I need changes to appear within 24hrs.

    LOVE Firefox! I have just launched a website: www.animalhealingandhumans.com. My web designer told me it takes 7-10 days for any changes to appear. Why? I have cleared caches and cookies etc. I need to be more responsive than 7-1o days. I need changes to appear within 24hrs. How can I achieve a much better response time to good feedback?

    Hello binbingogoABC,
    Shopping on BestBuy.com should be easy and fun and not fraught with the kind of trouble that you describe. I regret very much that this has been your experience.
    Using the information you provided when you signed up for Best Buy Unboxed I was able to locate your cancelled orders. I have requested more information from my back-office partners. As soon as I have additional details about your situation, I will reply again to this message. In the interim, I'm sorry that I must impose upon your patience.
    I'm very grateful that you wrote to us with your concerns.
    Sincerely,

  • WebRFC - clearing cache after making changes in SAP

    I'm finding that as I make changes to my Functional Modules in SAP, and then try to test them from Personas, I can not pick up the new version until I log right out of NWBC and the log back in again .... there has to be a faster way .... right?
    Any tips much appreciated.
    Regards.
    patrick

    No, you don't need to clear the cache. You only have to reconfigure your domain through the psadmin menu.
    Nicolas.

  • Pogo games won't load - cleared cache, reloaded firefox, reloaded plugins, reloaded java, reloaded adobe flash - nothing is working - need NEW suggestions please.

    Pogo games won't load - cleared cache, uninstalled and reloaded firefox, reloaded plugins, uninstalled and reloaded java, uninstalled and reloaded adobe flash - nothing is working - need NEW suggestions please.

    Try doing these steps:
    Install Firefox 11 from [http://www.getfirefox.com www.getfirefox.com]. simply install it over your current version of Firefox to make sure all Windows Registry settings get recreated correctly.
    Run all Windows Updates. Service packs, etc. You may have to run this several times to ensure that you get all needed updates.
    Download and Install MalwareBytes Anti-Malware, run a full Scan. [http://www.malwarebytes.org/ http://www.malwarebytes.org/]. This helps check that there are no viruses on your computer causing issues. You can uninstall this program after you clean off any infections.
    Update your graphics driver (Firefox uses your graphics card for some rendering, and an out of date graphics card driver can cause problems. [https://support.mozilla.org/en-US/kb/how-do-i-upgrade-my-graphics-drivers https://support.mozilla.org/en-US/kb/how-do-i-upgrade-my-graphics-drivers].
    After doing all these steps, try restarting your computer, and seeing if Pogo will run.
    If it doesn't work, go into your control panel, and uninstall every installation of Java and Flash that you have. Restart your computer again, then install them from [http://fpdownload.macromedia.com/pub/flashplayer/current/licensing/win/install_flash_player_11_plugin_32bit.exe http://fpdownload.macromedia.com/pub/flashplayer/current/licensing/win/install_flash_player_11_plugin_32bit.exe] for Flash, and [http://javadl.sun.com/webapps/download/AutoDL?BundleId=62313 http://javadl.sun.com/webapps/download/AutoDL?BundleId=62313] for Java. again, restart your PC, then test.
    Try to start Firefox in [[Safe mode|Safe mode]]. This mode disables all extensions, user customizations, hardware acceleration, etc. temporarily for diagnostic and troubleshooting. If Firefox works find in Safe Mode, then this is likely an add-on issue. Restart Firefox in normal mode, then type "About:addons" (without the quotes) in the address bar. Disable your extensions one by one, restarting Firefox between each one, until you find the trouble maker. Once you do, you can disable that add-on and report the issue to that add-on's developer.
    If it does not help the issue, open up your Firefox Profile. [[Backing up your information|Backing up your information]] shows you where that is stored by default. Delete or rename the "pluginreg.dat" file (make sure Firefox is closed when you do this). Test again.

  • Viewer user see old worksheets - where can I clear cache?

    We are using AS 10.1202. The viewer is configured with Web Cache off. We are finding that recent changes to workbooks are not showing up to our viewer user population. We are confident that the privs are correct and suspect some kind of caching. We have stopped and restarted the application server. We have cleared the AS Web Cache, even though disco is not supposed to be using it. We have cleared the mod plsql caches.
    Any other suggestions?
    Thanks
    Steve

    Hi,
    Might be you have not refreshed the portlet.............
    Check whether Refresh portlet option is set to 'Never'.
    If so refresh the portlet, to see the changes in viewer
    Thanks
    Sridhar

  • G'day.  I am using iMovie 11 and need to clear disk space.  How can I do that using an external drive, leaving me the option to go back and make changes or access old events or projects from that external drive?

    G'day.  I am using iMovie 11 and need to clear disk space.  How can I do that using an external drive, leaving me the option to go back and make changes or access old events or projects from that external drive?

    The slightly bigger question is whether you want to move all movie content to the external drive (essentially meaning that drive will always need to be attached when you're working with your videos), or whether you just want to archive older videos off to the external drive.
    If you want to move all videos, then just move the 'Movies' folder in your home directory to the external drive, then create an alias of the external 'Movies' back in to your home directory. Now the 'Movies' icon in your home directory will point to the external drive and everything will just work (as long as the external drive is attached when you launch iMovie)
    If you want to archive older movies then each Movie should have its own subdirectory within your Movies folder. These can easily be moved off to the external drive, and moved back should you ever need to work on those movies again.

  • Where is the "tools" option in the new firefox version. I can't find it and need to clear my cache

    I was told by a webmaster that I need to "clear my cache" to make their website work right again. I have instructions to go to the "tools" option, but the new version of firefox doesn't have "tools" that I can find. Can someone please help. thanks

    Press either Alt or F10 and the old menus will temporarily be displayed.

  • I am operating a 2009 desktop Mac OsX 10.5.8. How do I upgrade to a current operating system? Do I need to purchase Snow Leopard? I have clicked update my software but see now changes.

    I am operating a 2009 desktop Mac OsX 10.5.8. How do I upgrade to a current operating system? Do I need to purchase Snow Leopard? I have clicked update my software but see now changes.

    You first must upgrade to Snow Leopard. In order to upgrade to Lion, Mountain Lion, or Mavericks you first must upgrade to Snow Leopard. Your model should be able to run Mavericks which you can download for free.
    Upgrading to Snow Leopard
    You can purchase Snow Leopard through the Apple Store: Mac OS X 10.6 Snow Leopard - Apple Store (U.S.). The price is $19.99 plus tax. You will be sent physical media by mail after placing your order.
    After you install Snow Leopard you will have to download and install the Mac OS X 10.6.8 Update Combo v1.1 to update Snow Leopard to 10.6.8 and give you access to the App Store. Access to the App Store enables you to download Mavericks if your computer meets the requirements.
         Snow Leopard General Requirements
           1. Mac computer with an Intel processor
           2. 1GB of memory
           3. 5GB of available disk space
           4. DVD drive for installation
           5. Some features require a compatible Internet service provider;
               fees may apply.
           6. Some features require Apple’s iCloud services; fees and
               terms apply.
    Upgrading to Lion
    If your computer does not meet the requirements to install Mavericks, it may still meet the requirements to install Lion.
    You can purchase Lion at the Online Apple Store. The cost is $19.99 (as it was before) plus tax.  It's a download. You will get an email containing a redemption code that you then use at the Mac App Store to download Lion. Save a copy of that installer to your Downloads folder because the installer deletes itself at the end of the installation.
         Lion System Requirements
           1. Mac computer with an Intel Core 2 Duo, Core i3, Core i5, Core i7,
               or Xeon processor
           2. 2GB of memory
           3. OS X v10.6.6 or later (v10.6.8 recommended)
           4. 7GB of available space
           5. Some features require an Apple ID; terms apply.
    Upgrading to Mavericks
    You can upgrade to Mavericks from Lion or directly from Snow Leopard. Mavericks can be downloaded from the Mac App Store for FREE.
    Upgrading to Mavericks
    To upgrade to Mavericks you must have Snow Leopard 10.6.8 or Lion installed. Download Mavericks from the App Store. Sign in using your Apple ID. Mavericks is free. The file is quite large, over 5 GBs, so allow some time to download. It would be preferable to use Ethernet because it is nearly four times faster than wireless.
        OS X Mavericks- System Requirements
          Macs that can be upgraded to OS X Mavericks
             1. iMac (Mid 2007 or newer) - Model Identifier 7,1 or later
             2. MacBook (Late 2008 Aluminum, or Early 2009 or newer) - Model Identifier 5,1 or later
             3. MacBook Pro (Mid/Late 2007 or newer) - Model Identifier 3,1 or later
             4. MacBook Air (Late 2008 or newer) - Model Identifier 2,1 or later
             5. Mac mini (Early 2009 or newer) - Model Identifier 3,1 or later
             6. Mac Pro (Early 2008 or newer) - Model Identifier 3,1 or later
             7. Xserve (Early 2009) - Model Identifier 3,1 or later
    To find the model identifier open System Profiler in the Utilities folder. It's displayed in the panel on the right.
         Are my applications compatible?
             See App Compatibility Table - RoaringApps.
    Remember to do the following before starting the upgrade process:
    Repair the Hard Drive and Permissions
    Boot from your Leopard Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Utilities menu. After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list.  In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive.  If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Restart the computer from the Apple menu.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.

  • I have a new website but can't see it on my computer after clearing caches!

    The problem is only on my mac others in the company see the new site. The problem is on on all 3 browsers safari, chrome and firefox. I have cleared caches, gone through to clear the cache.db in the library. Im getting desporate now, please help!

    Hi Carolyn, thanks for your reply. The problem is fixed. I don't know how but cahes other than the ones i can see/control have been updated.  My collegues could see the new site immediatley but my computer took 2 days to catch up! Appreciate your reply. Have a good day.
    Best
    Matt

Maybe you are looking for

  • Service entry problem when not accepted

    We have a problem when there are multiple service entries agains a PO. There are no problems when we do the first entry and accept. The problem happens when we do a second entry and the end user only saves and forgets to accept the SES. When they do

  • Apex Calendar - Display Values Vertical

    Is there a way to display values in a calendar vertically? i.e. Jan 1: V V A A L L U U E E 1 2 Any ideas would be greatly appreciated.

  • How to specify a policy file in a WS client (AXIS2)

    I am trying to access a dot net web service and i want to make use of the policy file they gave me. i read that AXIS2 supports WS-Policy in the client side but i still can not figure out how to tell the client to use the file. I searched thouroghly f

  • MULTI entry of questions due to iOS safari reporting that the support was in maintenance

    I Had a need to use the the gps so I turned on the location services to do it and I noticed ( after returning the phone to normal ( no use of the gps apps) a few phone calls a day and a text or two a few calendar notifications etc that my 4s went fro

  • Determine the business process used for a change request

    Good Day All; I was wondering if any knows how to I would be able to back track from a change request to the Business Process it was created under. Let me explain our process. An Issue is created (Solar01). From the issue, a change request is then cr