0

I am developing a web application and have the app deployed into Tomcat server. Tested on IE and Firefox and are working fine. Meaning when I close the browser and reopen the app, the data will be reset. When deploy to Websphere, the data is reset only in IE but Firefox don't. Meaning Firefox will cache the old data. I did try to clear the cache in FF but still failed. I did a test in FF3 and FF16, FF3 will reset the value but FF16 doesn't, I am just so curious why this could happened?

Now I don't know whether this is my code problem or is actually the FF caching problem. Any clue on this?

  • ctrl-f5 will bypass the cache see if that works, also check the cache control headers you send – ratchet freak Nov 16 '12 at 8:13
  • Did ctrl-f5, still failed. – huahsin68 Nov 16 '12 at 8:21
3

HTTP caching is quite complex and influenced by a number of HTTP headers, so there is ample room for misunderstanding and different interpretations of the standard. And the standard has been extended a few times. This explains why you're seeing different results with different browsers.

This document explains it in detail. Read it, understand it, then look at what HTTP headers your application sends. If you still can't solve the problem, ask another question here that includes those HTTP headers.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.