Firefox cache problem

Hi,
There is an old nasty problem that I finally want to solve:
With Firefox my Apex applications get a cache problem once in a while: The user clicks on a button or tab or a text field etc. and suddenly gets a page with the design mingled up and the functionality broken. With ctrl + F5 (refresh) everything is fine again, but it's rather ennoying for the users. The problem is, some users get that often, others not at all, sometimes it's more, sometimes it's less. For all (internal) users I set in prefs.js the cache to user_pref("browser.cache.check_doc_frequency", 1); for maximum refresh behaviour. So the configs should be the same for all.
With other websites it doesn't seem to happen. Is this an Apex specific problem? Are others experiencing the same? Any hint or solution? I would be glad for some input.
Thank you,
Roger

Never get that problem Roger.
The cache problem I have with firefox is trying to get it to load the latest versions of javascript libraries after they have been changed.
Andy.

Similar Messages

  • Caching problem in Chrome and Firefox

    Hey folks,
    I ran into a weird problem.  I created a video player based on the Strobe Media Playback.  I added a couple of plugins.  This player is used to watch progressive download FLV files.
    I ran into the following issue.  I watch part of a video.  I select another one.  Then I select the previous one again.  Only the cached portion of the first video is shown.  The entire video will not be downloaded again from the server, but only the portion already cached on the client.
    This problem is really bad in Chrome.  When I restart FF, I can watch the entire video.  Not in Chrome.  The only way to solve this in Chrome is to clear the cache.
    Any ideas?
    The website is live, so you can test this yourselve.  http://www.submergeproductions.com/videos.aspx
    All help very welcome, because this is a major issue.
    Follow up.  I made a quick fix.  I added a random number to the FLV url to force a redownload from the server, but this quite a dirty fix. I would rather have a restart/continuation of the download if the file was only partially downloaded.
    Thanks,
    Peter

    Hi Silviu,
    the reason why it works now is because I uploaded a modified version.  I append "?<random number> to the URL.  That prevents caching problems because the browser hasn't got the version cached.  But I still report it as a bug.
    Peter

  • Caching problem with Internet Explorer

    Hi,
    users of an ApEx application I'm working on are reporting that when they're deleting an uploaded file from one of the pages in the application (using Internet Explorer), the link to the file remains. This is however not an issue in FireFox, and after some research I found out that this is a caching problem in IE. It can be avoided by making IE check for newer versions of stored pages every time a page is visited, but it is clearly not an option to ask all our users to do this. I also learned that it can be fixed by randomizing the file URL every time the page is loaded, but I don't know how to randomize a URL, nor how to make it still point to the uploaded file.. Any help would be appreciated!
    Thanks,
    -Kjetil

    Kjetil,
    This problem is also there if you use Flash Charts with a drilldown. See this posting:
    http://www.deneskubicek.blogspot.com/
    It will also link you to a corresponding thread and to an example in my demo application.
    The idea with a random number changing you link is the same I used in extending my
    xml chart package.
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Why won't windows xp disk check complete until firefox cache is cleared?

    Windows disk check with the fix unchecked is handy to use as a quick way to verify the disk is ok without a restart. Some time back, it started always stopping in phase 2 (index verification) with the "windows cannot complete the disk check". Running it with the fix box checked (which of course requires a restart) it ran. But I got the same result immediately after running the repair.I had set the problem aside but today started googling the problem and found a site where someone discovered that clearing the Firefox cache fixed this. Well, that seemed pretty stupid and unlikely to me, but I figure I had little to lose but time.
    Well what do you know? Clearing the Firefox cache allowed the check to complete properly!
    Question: Why is this? This implies that something of Firefox is running even when Firefox is not "running". Are we locking sectors somehow? Is the cache marked in some way that stops the disk check? Inquiring mind(s) want to know!
    Version=34
    Chris

    Does this also happen when you boot Windows in Safe Mode in case other software keeps a handle on that folder?
    Boot the computer in Windows Safe Mode with network support (press F8 on the boot screen) as a test.
    *http://www.bleepingcomputer.com/tutorials/how-to-start-windows-in-safe-mode/
    Do a malware check with several malware scanning programs on the Windows computer.
    Please scan with all programs because each program detects different malware.
    All these programs have free versions.
    Make sure that you update each program to get the latest version of their databases before doing a scan.
    *Malwarebytes' Anti-Malware:<br>http://www.malwarebytes.org/mbam.php
    *AdwCleaner:<br>http://www.bleepingcomputer.com/download/adwcleaner/<br>http://www.softpedia.com/get/Antivirus/Removal-Tools/AdwCleaner.shtml
    *SuperAntispyware:<br>http://www.superantispyware.com/
    *Microsoft Safety Scanner:<br>http://www.microsoft.com/security/scanner/en-us/default.aspx
    *Windows Defender:<br>http://windows.microsoft.com/en-us/windows/using-defender
    *Spybot Search & Destroy:<br>http://www.safer-networking.org/en/index.html
    *Kasperky Free Security Scan:<br>http://www.kaspersky.com/security-scan
    You can also do a check for a rootkit infection with TDSSKiller.
    *Anti-rootkit utility TDSSKiller:<br>http://support.kaspersky.com/5350?el=88446
    See also:
    *"Spyware on Windows": http://kb.mozillazine.org/Popups_not_blocked
    *https://support.mozilla.org/kb/troubleshoot-firefox-issues-caused-malware

  • Since using cloudflare for my site I'm having troubles with Firefox cache

    Hello,
    Since I'm using CloudFlare for my Site I'm having a weird trouble occurring only with Firefox (version 16.0.2 / Mac OsX.6.8), but not with Chrome or Safari.
    When I navigate from the main page of my Wordpress Site to a single post, then back to the main page, then to another single post and back again to the main page, the browser displays a binary file instead of the normal page. After emptying Firefox cache the page loads again properly.
    When I pause CloudFlare the trouble disappears.
    I just ask here because this does not happen with other browsers.
    The config of the site is : Wordpress 3.4.2 with W3 Total Cache Plugin and the browser caching enabled.
    If disabling the plugins the problem remains the same.
    Thanks in advance to anyone who could help.

    Hi,
    This is not a solution but one way you could try to troubleshoot this is through the [https://developer.mozilla.org/en-US/docs/Tools/Web_Console Web Console] opened via '''Tools''' ('''Alt''' + '''T''') > '''Web Developer'''. You need to have it open before loading/reloading etc. Clicking on GET, POST links provides detailed info including Content-Type, encoding etc. You can also right-click and select '''Log Request and Response Bodies''' to view the transferred data. Hopefully you would be able to find the cause and resolve it.
    [https://developer.mozilla.org/en-US/docs/Tools Firefox Tools]

  • LoadSound IE cache problem

    I see there are a lot of postings on this topic, however I
    haven't found any resolutions that are working for me. Here is the
    situation. I have a main movie, that loads external .swfs and plays
    in a linear way, much like a slide presentation. There are back and
    forward buttons, that go from one slide to the next. In each
    external .swf I am loading an mp3 dynamically as an event sound in
    the first frame. Here's an example of the AS:
    this.my_sound = new Sound();
    this.my_sound.loadSound("screen2.mp3", false);
    this.my_sound.onLoad = function(){
    my_sound.start();
    gotoAndPlay(2);
    This all works fine when I upload the files, clear my cache,
    and go to the URL. When I refresh the browser, it stops working.
    When I use the forward or backward buttons, it also stops working.
    Pretty much any time I try to revisit this external swf after it
    initially plays, it won't play at all. I'm assuming this has
    something to do with the cache. It's only an IE problem so far as I
    can see. I don't have this problem in Firefox. I've tried giving
    the mp3 a different extension. Doesn't work. I've tried moving all
    the AS to the second frame. Doesn't work. Any help would be greatly
    appreciated.
    Thanks.

    inlineblue and Tracy,
    Came across this post while looking for a solution for the
    cache problem. I am using Flex 2.0.1.
    Q1) From what I understood is adding a parameter to the
    AC_FL_RunContent("src", "MainMod?version1.1",...) call in the HTML
    wrapper will make sure the latest content is downloaded to the
    browser. Does this mean when the next time my MainMod.mxml is
    changed, I need to make this V1.2.
    Q2) I only saw one occurance of AC_FL_RunContent call in my
    wrapper where it is referring my SWF file. This is the only place I
    need to keep changing whenever the mxml file is changed?
    Q3) Looks like I have to change all Wrapper files (if I have
    multiple .mxml files in my project). Is there any we can automate
    this?
    Do you have a sample that I could take a look at to
    understand what needs to be changed to fix the issue?
    Appreciate your help.

  • Signing into Google home page requires me to empty Firefox cache and cookies and restart Firefox. Any way to avoid this?

    When I sign into my home page (Google), I often get a blank page. I then have to empty the Firefox cache and cookies, restart Firefox, and then when I go to the Google home page, I have to sign in with my ID and password. I have checked the box that says keep me signed in. This does not happen with Safari.
    I am running a Mac with OS Lion.

    Make sure that cookies are enabled for the site : [https://support.mozilla.org/en-US/kb/fix-login-issues-on-websites-requrie-passwords?redirectlocale=en-US&redirectslug=Cannot+log+in+to+websites#w_enable-cookies-for-the-website Enable cookies for the website]
    also [https://support.mozilla.org/en-US/kb/fix-login-issues-on-websites-requrie-passwords?redirectlocale=en-US&redirectslug=Cannot+log+in+to+websites#w_check-extensions-and-plugins Check Extensions and Plugins] if the problem is there.
    thank you

  • Firefox cache settings no longer working

    Firefox cache settings that were working are no longer working, in Windows XP (x86) and Windows 7 (64).
    By this I meant that I had set the cache to a ram-drive, but that is no longer being used, the cache is being written to disk instead in what is apparently the new default location, and my customized cache settings are ignored.
    I've tried resetting Firefox to default and then re-applying them, but the problem still exists.
    This is for FF 19+, but not sure when the problem first occurred - perhaps an earlier version too.
    Is it no longer possible to re-direct the cache directory? How do you do it?

    For jumpListCache , I found that setting browser.taskbar.lists.enabled to false prevents their capture:
    http://forum.palemoon.org/viewtopic.php?f=13&t=1985&start=10

  • Lately when I access Optum Rx it mbegins to load but I get firefox having problem loading page

    Lately when I access Optum Rx I log in and it begins to download the I receive message firefox having problem loading page, why?

    Update your Firefox to latest version of Firefox 20.0.1
    Hello,
    Many site issues can be caused by corrupt cookies or cache. In order to try to fix these problems, the first step is to clear both cookies and the cache.
    Note: ''This will temporarily log you out of all sites you're logged in to.''
    To clear cache and cookies do the following:
    #Go to Firefox > History > Clear recent history or (if no Firefox button is shown) go to Tools > Clear recent history.
    #Under "Time range to clear", select "Everything".
    #Now, click the arrow next to Details to toggle the Details list active.
    #From the details list, check ''Cache'' and ''Cookies'' and uncheck everything else.
    #Now click the ''Clear now'' button.
    Further information can be found in the [[Clear your cache, history and other personal information in Firefox]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • IE CACHE PROBLEM NEED HELP ASAP

    Every flex 2 app I make is being cached by IE! Works fine on
    FireFox, but everytime I run it in IE I need to dump my cache. Is
    there anything wrong.

    inlineblue and Tracy,
    Came across this post while looking for a solution for the
    cache problem. I am using Flex 2.0.1.
    Q1) From what I understood is adding a parameter to the
    AC_FL_RunContent("src", "MainMod?version1.1",...) call in the HTML
    wrapper will make sure the latest content is downloaded to the
    browser. Does this mean when the next time my MainMod.mxml is
    changed, I need to make this V1.2.
    Q2) I only saw one occurance of AC_FL_RunContent call in my
    wrapper where it is referring my SWF file. This is the only place I
    need to keep changing whenever the mxml file is changed?
    Q3) Looks like I have to change all Wrapper files (if I have
    multiple .mxml files in my project). Is there any we can automate
    this?
    Do you have a sample that I could take a look at to
    understand what needs to be changed to fix the issue?
    Appreciate your help.

  • Cache problem with one site

    I have a problem with not getting the latest version of a page on one site (that I am aware of).
    I can get the latest version of http://www.thefa.com/thefacup/more/competition-bulletins on IE but Firefox gives me a page that hasn't been updated. Attached file 1 shows the Firefox cache entry, file 2 shows the page displayed on FF and file 3 shows the page on IE.
    This has been a problem with that page since I started using FF over a year ago.
    The only way to get the latest version is to "reload the current page" which is not a major problem but is annoying.
    Is this likely to be happening with other pages that are not so obvious or is it some incompatibility between that page and FF?

    I disabled cookies and deleted the existing ones for this site but it didn't make any difference - I didn't expect it to.
    I didn't try "forgetting" the site as my understanding is that this just clears the cache and cookies at that time but it doesn't stop them being saved again.
    Is there a way of not caching a specific site? If not, I'll just continue to "reload the current page" when I need to.

  • Will there be a fix for Firefox's problems with Hotmail. I have gone back to 3.5.9 but mostly I am disappointed by the lack of action on this serious problem where a major and critical feature of a major international website is unavailable in the Firefox

    Will there be a fix for Firefox's problems with Hotmail. I have gone back to 3.5.9 but mostly I am disappointed by the lack of action on this serious problem where a major and critical feature of a major international website is unavailable in the Firefox browser.
    == URL of affected sites ==
    http://www.hotmail.com

    We've reached out to the Hotmail team and they've determined that this is a bug in their code. (It was masked by a timing issue in 3.5 that was fixed in 3.6.) We've worked with them to develop a fix but they may not have deployed it yet.

  • Firefox gets problems when 2,7 GB of memory is used by Firefox

    Firefox gets problems when 2,7 GB of memory is used by Firefox. Or more. Like 2,8 GB.
    It started when I read jpost.com with tens of tabs open. I don't remember how many. But I know there was more than 40.
    On the tab I that I was reading, the page turned completely black. Pitch black with nothing else, not even the Firefox interface. It was actually a pitch black shape that looked like a web page in shape. The blackness quickly disappeared and the page was normally readable again. But then it happened again - the page turned black again.
    The same page turns black happened again later.
    One of my browsing sessions had Firefox slow down so much that you could see scrolling happening when I used scrolling.
    Still another time I had 60 tabs open and Firefox worked completely fine without freezes, slowdowns, or black shapes. I could close Firefox by just pressing the red X in the title bar.
    Yesterday, I had 50 tabs open and I experienced a slowdown when I looked at the Breaking News headlines. The headlines would show slower than usual. The Breaking News headlines at jpost.com show the headlines a few words at a time until the headline is completely shown. Then the headline disappears and the next starts showing a few words at a time. And speed in general was not what you normally have with a computer that has 8 GB of memory. And a Core i5 processor. I opened two more tabs from the Breaking News section I had opened. After I opened a new window, Firefox froze. I had to close Firefox from the Task Manager by pressing End process. I had used Firefox for 6 hours without ever closing any of the tabs I had opened.
    In all of these cases, more than 40 tabs were open. In all of these cases, the slow down or freeze meant I had to use Task Manager and then press End process on the Processes tab. In all cases except the two I describe in the next paragraph, I never close any tabs after opening them. No problems have ever happened until Firefox started using 2,7 GB of memory. Until that point, everything is normal with no freezes or slowdowns.
    At two times, I tried to reduce memory usage by closing tabs. However, in both cases this would make Firefox freeze. In one of these cases, Firefox would show something bizarre: there would be about 7 tabs, and one of the tabs would be partly shown. Also, Firefox would show the busy cursor. Firefox did not show how many tabs I actually had. The second time, I tried to close the tabs by clicking Close other tabs in the menu that you get when right-click a tab. The tabs would close fine, but I remember that I opened Gmail and then I did this: I clicked on the Promotions tab. Instead of seeing the tab with the Emails, Firefox showed a busy cursor and the title bar said not responding. Firefox froze.
    The reason might be Adblock Plus memory usage. In Adblock Plus home page, developer Wladimir Palant writes in his blog about how Adblock Plus uses a lot of memory: https://adblockplus.org/blog/on-the-adblock-plus-memory-consumption .

    One more bit of information: I have a Geforce 640 GT graphics card. My graphics card drivers are old- version 311.41. The newest version of the drivers is 340.52. Would a new graphics card driver solve the problem?

  • Caching problem w/ primary-foreign key mapping

    I have seen this a couple of times now. It is not consistent enough to
    create a simple reproducible test case, so I will have to describe it to you
    with an example and hope you can track it down. It only occurs when caching
    is enabled.
    Here are the classes:
    class C1 { int id; C2 c2; }
    class C2 { int id; C1 c1; }
    Each class uses application identity using static nested Id classes: C1.Id
    and C2.Id. What is unusual is that the same value is used for both
    instances:
    int id = nextId();
    C1 c1 = new C1(id);
    C2 c2 = new C2(id);
    c1.c2 = c2;
    c2.c1 = c1;
    This all works fine using optimistic transactions with caching disabled.
    Although the integer values are the same, the oids are unique because each
    class defines its own unique oid class.
    Here is the schema and mapping (this works with caching disabled but fails
    with caching enabled):
    table t1: column id integer, column revision integer, primary key (id)
    table t2: column id integer, column revision integer, primary key (id)
    <jdo>
    <package name="test">
    <class name="C1" objectid-class="C1$Id">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="t1"/>
    </extension>
    <extension vendor-name="kodo" key="jdbc-version-ind"
    value="version-number">
    <extension vendor-name="kodo" key="column" value="revision"/>
    </extension>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="id"/>
    </extension>
    </field>
    <field name="c2">
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="column.id" value="id"/>
    </extension>
    </field>
    </class>
    <class name="C2" objectid-class="C2$Id">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="t2"/>
    </extension>
    <extension vendor-name="kodo" key="jdbc-version-ind"
    value="version-number">
    <extension vendor-name="kodo" key="column" value="revision"/>
    </extension>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="id"/>
    </extension>
    </field>
    <field name="c1">
    <extension vendor-name="kodo" key="dependent" value="true"/>
    <extension vendor-name="kodo" key="inverse-owner" value="c2"/>
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="table" value="t1"/>
    <extension vendor-name="kodo" key="ref-column.id" value="id"/>
    <extension vendor-name="kodo" key="column.id" value="id"/>
    </extension>
    </field>
    </class>
    </package>
    </jdo>
    Because the ids are known to be the same, the primary key values are also
    used as foreign key values. Accessing C2.c1 is always non-null when caching
    is disabled. With caching is enabled C2.c1 is usually non-null but sometimes
    null. When it is null we get warnings about dangling references to deleted
    instances with id values of 0 and other similar warnings.
    The workaround is to add a redundant column with the same value. For some
    reason this works around the caching problem (this is unnecessary with
    caching disabled):
    table t1: column id integer, column id2 integer, column revision integer,
    primary key (id), unique index (id2)
    table t2: column id integer, column revision integer, primary key (id)
    <jdo>
    <package name="test">
    <class name="C1" objectid-class="C1$Id">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="t1"/>
    </extension>
    <extension vendor-name="kodo" key="jdbc-version-ind"
    value="version-number">
    <extension vendor-name="kodo" key="column" value="revision"/>
    </extension>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="id"/>
    </extension>
    </field>
    <field name="c2">
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="column.id" value="id2"/>
    </extension>
    </field>
    </class>
    <class name="C2" objectid-class="C2$Id">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="t2"/>
    </extension>
    <extension vendor-name="kodo" key="jdbc-version-ind"
    value="version-number">
    <extension vendor-name="kodo" key="column" value="revision"/>
    </extension>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="id"/>
    </extension>
    </field>
    <field name="c1">
    <extension vendor-name="kodo" key="dependent" value="true"/>
    <extension vendor-name="kodo" key="inverse-owner" value="c2"/>
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="table" value="t1"/>
    <extension vendor-name="kodo" key="ref-column.id" value="id2"/>
    <extension vendor-name="kodo" key="column.id" value="id"/>
    </extension>
    </field>
    </class>
    </package>
    </jdo>
    Needless to say, the extra column adds a lot of overhead, including the
    addition of a second unique index, for no value other than working around
    the caching defect.

    Tom-
    The first thing that I think of whenever I see a problem like this is
    that the equals() and hashCode() methods of your application identity
    classes are not correct. Can you check them to ensure that they are
    written in accordance to the guidelines at:
    http://docs.solarmetric.com/manual.html#jdo_overview_pc_identity_application
    If that doesn't help address the problem, can you post the code for your
    application identity classes so we can double-check, and we will try to
    determine what might be causing the problem.
    In article <[email protected]>, Tom Landon wrote:
    I have seen this a couple of times now. It is not consistent enough to
    create a simple reproducible test case, so I will have to describe it to you
    with an example and hope you can track it down. It only occurs when caching
    is enabled.
    Here are the classes:
    class C1 { int id; C2 c2; }
    class C2 { int id; C1 c1; }
    Each class uses application identity using static nested Id classes: C1.Id
    and C2.Id. What is unusual is that the same value is used for both
    instances:
    int id = nextId();
    C1 c1 = new C1(id);
    C2 c2 = new C2(id);
    c1.c2 = c2;
    c2.c1 = c1;
    This all works fine using optimistic transactions with caching disabled.
    Although the integer values are the same, the oids are unique because each
    class defines its own unique oid class.
    Here is the schema and mapping (this works with caching disabled but fails
    with caching enabled):
    table t1: column id integer, column revision integer, primary key (id)
    table t2: column id integer, column revision integer, primary key (id)
    <jdo>
    <package name="test">
    <class name="C1" objectid-class="C1$Id">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="t1"/>
    </extension>
    <extension vendor-name="kodo" key="jdbc-version-ind"
    value="version-number">
    <extension vendor-name="kodo" key="column" value="revision"/>
    </extension>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="id"/>
    </extension>
    </field>
    <field name="c2">
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="column.id" value="id"/>
    </extension>
    </field>
    </class>
    <class name="C2" objectid-class="C2$Id">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="t2"/>
    </extension>
    <extension vendor-name="kodo" key="jdbc-version-ind"
    value="version-number">
    <extension vendor-name="kodo" key="column" value="revision"/>
    </extension>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="id"/>
    </extension>
    </field>
    <field name="c1">
    <extension vendor-name="kodo" key="dependent" value="true"/>
    <extension vendor-name="kodo" key="inverse-owner" value="c2"/>
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="table" value="t1"/>
    <extension vendor-name="kodo" key="ref-column.id" value="id"/>
    <extension vendor-name="kodo" key="column.id" value="id"/>
    </extension>
    </field>
    </class>
    </package>
    </jdo>
    Because the ids are known to be the same, the primary key values are also
    used as foreign key values. Accessing C2.c1 is always non-null when caching
    is disabled. With caching is enabled C2.c1 is usually non-null but sometimes
    null. When it is null we get warnings about dangling references to deleted
    instances with id values of 0 and other similar warnings.
    The workaround is to add a redundant column with the same value. For some
    reason this works around the caching problem (this is unnecessary with
    caching disabled):
    table t1: column id integer, column id2 integer, column revision integer,
    primary key (id), unique index (id2)
    table t2: column id integer, column revision integer, primary key (id)
    <jdo>
    <package name="test">
    <class name="C1" objectid-class="C1$Id">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="t1"/>
    </extension>
    <extension vendor-name="kodo" key="jdbc-version-ind"
    value="version-number">
    <extension vendor-name="kodo" key="column" value="revision"/>
    </extension>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="id"/>
    </extension>
    </field>
    <field name="c2">
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="column.id" value="id2"/>
    </extension>
    </field>
    </class>
    <class name="C2" objectid-class="C2$Id">
    <extension vendor-name="kodo" key="jdbc-class-map" value="base">
    <extension vendor-name="kodo" key="table" value="t2"/>
    </extension>
    <extension vendor-name="kodo" key="jdbc-version-ind"
    value="version-number">
    <extension vendor-name="kodo" key="column" value="revision"/>
    </extension>
    <field name="id" primary-key="true">
    <extension vendor-name="kodo" key="jdbc-field-map" value="value">
    <extension vendor-name="kodo" key="column" value="id"/>
    </extension>
    </field>
    <field name="c1">
    <extension vendor-name="kodo" key="dependent" value="true"/>
    <extension vendor-name="kodo" key="inverse-owner" value="c2"/>
    <extension vendor-name="kodo" key="jdbc-field-map" value="one-one">
    <extension vendor-name="kodo" key="table" value="t1"/>
    <extension vendor-name="kodo" key="ref-column.id" value="id2"/>
    <extension vendor-name="kodo" key="column.id" value="id"/>
    </extension>
    </field>
    </class>
    </package>
    </jdo>
    Needless to say, the extra column adds a lot of overhead, including the
    addition of a second unique index, for no value other than working around
    the caching defect.
    Marc Prud'hommeaux [email protected]
    SolarMetric Inc. http://www.solarmetric.com

  • I am facing a caching problem in the Web-Application that I've developed us

    Dear Friends,
    I am facing a caching problem in the Web-Application that I've developed using Java/JSP/Servlet.
    Problem Description: In this application when a hyperlink is clicked it is supposed to go the Handling Servlet and then servlet will fetch the data (using DAO layer) and will store in the session. After this the servlet will forward the request to the view JSP to present the data. The JSP access the object stored in the session and displays the data.
    However, when the link is clicked second time then the request is not received by our servlet and the cached(prev data) page is shown. If we refresh the page then request come to the servlet and we get correct data. But as you will also agree that we don't want the users to refresh the page again and again to get the updated data.
    We've included these lines in JSPs also but it does no good:
    <%
    response.setHeader("Expires", "0");
    response.setHeader("Cache-Control" ,"no-cache, must-revalidate");
    response.setHeader("Pragma", "no-cache");
    response.setHeader("Cache-Control","no-store");
    %>
    Request you to please give a solution for the same.
    Thanks & Regards,
    Mohan

    However, when the link is clicked second time then the request is not received by our servlet Impossible mate.. can you show your code. You sure there are no javascript errors ?
    Why dont you just remove your object from the session after displaying the data from it and see if your page "automatically" hits the servlet when the link is clicked.
    cheers..
    S

Maybe you are looking for