Hi -
I'm seeing consistent TCP_MISSes for URIs that happen to follow a pattern.

We distribute two kinds of .txt files. One is a serial number, say
serial.txt, with a sequential number incremented every 2-5 seconds. The
origin server, Apache http 2.2.x, has set the Cache-Control header like so:
< Cache-Control: max-age=5, stale-if-error=86400

The second type of txt file is a checksum. There is a checksum file for
every increment of the serial number. The Cache-Control header is
<  Cache-Control: max-age=604800, stale-if-error=86400

I see consistent TCP_MISS messages in squid ascii logs for the cksum files.

1553890048.810 1 192.168.5.200 TCP_IMS_HIT/304 189 GET
http://192.168.5.80:80/ebl/srl.txt - NONE/- -
1553890048.817 1 192.168.5.200 TCP_MISS/200 434 GET
http://192.168.5.80:80/hs1/sp_sender_rep.4/incremental/cksum/16824/16824241.txt
- DIRECT/192.168.5.80 text/plain
1553890048.818 0 192.168.5.200 TCP_MISS/200 433 GET
http://192.168.5.80:80/hs1/sp_sender_rep.4/incremental/cksum/16824/16824326.txt
- DIRECT/192.168.5.80 text/plain
1553890048.838 1 192.168.5.200 TCP_MISS/200 434 GET
http://192.168.5.80:80/hs1/comprehensive.4/incremental/cksum/16824/16824302.txt
- DIRECT/192.168.5.80 text/plain
1553890048.839 1 192.168.5.200 TCP_MISS/200 433 GET
http://192.168.5.80:80/hs1/sp_sender_rep.4/incremental/cksum/16824/16824327.txt
- DIRECT/192.168.5.80 text/plain

First, would anyone have any insight into why ATS 7.1.4 is not caching the
cksum files (\d+\.txt) but IS caching the serial placeholders?
The only difference I see is that the max-age value in the Cache-Control
header.
Any pointers to look towards would be appreciated.

Second, would anyone like to take a stab at a url_regex to match the cksum
paths? I have

url_regex==cksum/\d+/\d+\.txt ttl-in-cache=1d

but I don't see any change in the logging.

Thanks for any pointers.

-- 
John Garvin

Reply via email to