免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2159 | 回复: 6
打印 上一主题 下一主题

[proxy] 采用了SQUID后不能立即刷新新的页面? [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2004-06-15 16:39 |只看该作者 |倒序浏览
采用了SQUID缓存后,修改了网站的页面,但在公网里浏览时点击刷新却出来的还是以前的旧页面,说明点击IE中的刷新还是没有到WEB服务器上去重新取数据,只是从SQUID中取了旧数据,请问对不对?

  怎样才能立即刷新新的页面来?

论坛徽章:
0
2 [报告]
发表于 2004-06-16 08:26 |只看该作者

采用了SQUID后不能立即刷新新的页面?

在WEB服务器上已经修改了相应的html文档内容,但在客户机上页面不能得到刷

新,被客户投诉。我试过在客户机上删除cookies,删除临时文件,删除历史记

录,但还是不凑效。

请教:点击IE中的刷新不会从WEB服务器上重新获取新的数据吗?

论坛徽章:
0
3 [报告]
发表于 2004-06-17 02:18 |只看该作者

采用了SQUID后不能立即刷新新的页面?

use PURGE to delete the url from cache.

ie:
telnet squidserver 3128
purge /the_page.html http/1.1
host: www.yourdomain.com

论坛徽章:
0
4 [报告]
发表于 2004-06-17 21:07 |只看该作者

采用了SQUID后不能立即刷新新的页面?

没太看明白楼上的贴,purge是哪里的命令,在linux下用不了的。我的服务器没有开通telnet,怎么办?

论坛徽章:
0
5 [报告]
发表于 2004-06-18 09:46 |只看该作者

采用了SQUID后不能立即刷新新的页面?

purge is squid command

3128 is squid port.
just telnet to that port and issue about purge command. you can use command 'squidclient' to purge. see url below for detail:

http://www.squid-cache.org/Doc/FAQ/FAQ-7.html

7.5 How can I purge an object from my cache?

Squid does not allow you to purge objects unless it is configured with access controls in squid.conf. First you must add something like

        acl PURGE method PURGE
        acl localhost src 127.0.0.1
        http_access allow PURGE localhost
        http_access deny PURGE

The above only allows purge requests which come from the local host and denies all other purge requests.

To purge an object, you can use the squidclient program:

        squidclient -m PURGE http://www.miscreant.com/

If the purge was successful, you will see a ``200 OK'' response:
        HTTP/1.0 200 OK
        Date: Thu, 17 Jul 1997 16:03:32 GMT
        Server: Squid/1.1.14

If the object was not found in the cache, you will see a ``404 Not Found'' response:
        HTTP/1.0 404 Not Found
        Date: Thu, 17 Jul 1997 16:03:22 GMT
        Server: Squid/1.1.14

论坛徽章:
0
6 [报告]
发表于 2004-06-22 15:07 |只看该作者

采用了SQUID后不能立即刷新新的页面?

服务器没有开通telnet,为了刷新一个页面一定需要telnet吗?
在访问web服务器时总有新的页面要被刷新,用这个方法好像比较的麻烦,有没有其它更好的方案啊?

请教版主有没有碰到类似的问题,我辛苦近一个月做的squid,因为单位的主页不能刷新而被人投诉。我还真不想这点小问题就放弃squid。

论坛徽章:
0
7 [报告]
发表于 2004-06-27 10:39 |只看该作者

采用了SQUID后不能立即刷新新的页面?

要求及时更新的网站就不要用SQUID,否则会有不少麻烦的
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP