- 论坛徽章:
- 0
|
如何用squid做jsp,asp,php动态页面的缓存5分钟,
用如下定义图片等都可缓存,但就是.asp的不能.
acl CACHABLE_PAGES urlpath_regex ^/lif/index\.asp
acl CACHABLE_PAGES urlpath_regex ^/lif/index1\.asp
acl NONE_CACHABLE_PAGES urlpath_regex \? \.asp
no_cache allow CACHABLE_PAGES
no_cache deny NONE_CACHABLE_PAGES
refresh_pattern ^http://www.xxx.com/life/index\.asp 2 0% 2 ignore-reload
refresh_pattern ^http://www.xxx.com/life/index2\.asp 1440 0% 1440 ignore-reload
.asp没缓存 (..index.asp - DIRECT/192.168.1.10 text/html)
1123974206.829 38097 192.168.1.168 TCP_MISS/200 87339 GET http://www.xxx.com/life/index.asp - DIRECT/192.168.1.10 text/html
1123974206.840 10 192.168.1.168 TCP_IMS_HIT/304 244 GET http://www.xxx.com/life/style/style1.css - NONE/- text/css
1123974206.844 1 192.168.1.168 TCP_NEGATIVE_HIT/404 1576 GET http://www.xxx.com/life/images/top_1_1.jpg - NONE/- text/html
1123974206.846 0 192.168.1.168 TCP_IMS_HIT/304 245 GET http://www.xxx.com/life/images/Line19_05.gif - NONE/- image/gif
1123974206.849 3 192.168.1.168 TCP_IMS_HIT/304 246 GET http://www.xxx.com/life/temp/images/top_2.jpg - NONE/- image/jpeg
1123974206.850 1 192.168.1.168 TCP_IMS_HIT/304 245 GET http://www.xxx.com/life/images/title07_39.gif - NONE/- image/gif
1123974206.872 22 192.168.1.168 TCP_IMS_HIT/304 245 GET http://www.xxx.com/life/images/Line19_09.gif - NONE/- image/gif
1 |
|