普通网友 2013-03-16 10:31
浏览 32

AJAX,缓存和时间戳

Im getting kind of desperate with a caching issue. Im calling jsp sites via AJAX and I simply wont get the updatet code back but rather an older version. The same happens when I delete browser cache AND the server cache. I read about using timestamps in the url which sounded reasonable. So I added that but the content will simply not update. Very rarely I get it to work by spamming my code with random out.println commands that print out random strings. Obviously thats not very efficient.. heh

Any idea what might be the issue? This is serioulsy making me go crazy.

EDIT:

Ok some updates on the situation: * It seems the browser is not the culprit. Did some testing with Mozilla and IE. It seems there is still some caching happening at the server for some reason. * Also apparantly its not only happening when doing AJAX request, I just had the same problem on the index.jsp.

I'm not really sure anymore if its of use to post the sources on the AJAX stuff, considering I get the same problem without AJAX. I ll take a look at the server settings again and see if something got messed up in there.

  • 写回答

0条回答 默认 最新

    报告相同问题?

    悬赏问题

    • ¥15 如何在scanpy上做差异基因和通路富集?
    • ¥20 关于#硬件工程#的问题,请各位专家解答!
    • ¥15 关于#matlab#的问题:期望的系统闭环传递函数为G(s)=wn^2/s^2+2¢wn+wn^2阻尼系数¢=0.707,使系统具有较小的超调量
    • ¥15 FLUENT如何实现在堆积颗粒的上表面加载高斯热源
    • ¥30 截图中的mathematics程序转换成matlab
    • ¥15 动力学代码报错,维度不匹配
    • ¥15 Power query添加列问题
    • ¥50 Kubernetes&Fission&Eleasticsearch
    • ¥15 報錯:Person is not mapped,如何解決?
    • ¥15 c++头文件不能识别CDialog