Topic: 关于HTTP Cache的问题,各位DX帮帮忙

  Print this page

1.关于HTTP Cache的问题,各位DX帮帮忙 Copy to clipboard
Posted by: fat32
Posted on: 2003-10-24 14:21

我的程序通过HttpServetResponse OutputStream将一个图片写到页面
我通过
response.setHeader("Pragma", "No-cache");
response.setDateHeader("Expires", 0);
response.setHeader("Cache-Control", "no-cache");
来设置禁止浏览器cache,但好像并不能其作用,哪位DX知道怎么回事啊?

2.Re:关于HTTP Cache的问题,各位DX帮帮忙 [Re: fat32] Copy to clipboard
Posted by: floater
Posted on: 2003-10-25 03:20

check which version of HTTP your server is using. try no-store for Cache-Control. You may search w3c HTTP spec.

Which browser are you using? Not sure whether they honor these(they should do this, but it's not that must do this).

3.Re:关于HTTP Cache的问题,各位DX帮帮忙 [Re: fat32] Copy to clipboard
Posted by: microwin
Posted on: 2003-10-27 14:41

response.setHeader("Pragma", "No-cache");
response.setDateHeader("Expires", 0);
response.setHeader("Cache-Control", "no-cache");
这段代码起作用的前提是你在此代码前没有向请求的客房端输出任何东西


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923