Squid3 不缓存,总是 TCP_MISS/200

Squid3 不缓存,总是 TCP_MISS/200

我已经安装了 Squid3,现在我不会将其设置为缓存 WMTS。这是有效的 WMTS 服务网址http://mapy.geoportal.gov.pl/wss/service/WMTS/guest/wmts/ORTO,这里是该服务的图像链接

http://mapy.geoportal.gov.pl/wss/service/WMTS/guest/wmts/ORTO?service=WMTS&Layer=ORTOFOTOMAPA&style=default&Style=default&TileMatrixSet=EPSG:2180&Service=WMTS&Request=GetTile&Version=1.0.0&Format=image/png&TileMatrix=EPSG:2180:0&TileCol=0&TileRow=0

这是我的配置(squid3 -k parse 的输出)

2015/03/30 14:20:29| Processing: http_port 8888
2015/03/30 14:20:29| Processing: acl Safe_ports port 80
2015/03/30 14:20:29| Processing: acl CONNECT method CONNECT
2015/03/30 14:20:29| Processing: acl LAN src 192.168.1.0/24
2015/03/30 14:20:29| Processing: acl connrate maxconn 200
2015/03/30 14:20:29| Processing: http_access allow manager localhost
2015/03/30 14:20:29| Processing: http_access allow localhost
2015/03/30 14:20:29| Processing: http_access allow LAN
2015/03/30 14:20:29| Processing: http_access deny connrate
2015/03/30 14:20:29| Processing: http_access deny all
2015/03/30 14:20:29| Processing: icp_access allow LAN
2015/03/30 14:20:29| Processing: icp_access deny all
2015/03/30 14:20:29| Processing: cache_mem 1024 MB
2015/03/30 14:20:29| Processing: maximum_object_size_in_memory 1024 KB
2015/03/30 14:20:29| Processing: cache_replacement_policy heap GDSF
2015/03/30 14:20:29| Processing: maximum_object_size 4 MB
2015/03/30 14:20:29| Processing: cache_swap_low 85
2015/03/30 14:20:29| Processing: cache_swap_high 90
2015/03/30 14:20:29| Processing: memory_pools on
2015/03/30 14:20:29| Processing: offline_mode on
2015/03/30 14:20:29| Processing: visible_hostname server.lan
2015/03/30 14:20:29| Processing: minimum_object_size 20 KB
2015/03/30 14:20:29| Processing: cache_dir ufs /var/spool/squid3 4096 16 256

access.log 中的行总是看起来像

1427716690.428    101 192.168.1.25 TCP_MISS/200 45157 GET http://mapy.geoportal.gov.pl/wss/service/WMTS/guest/wmts/ORTO? - HIER_DIRECT/91.223.135.44 image/jpeg

有人能帮我设置一下吗?

相关内容