[squid-users] refresh_pattern and "?"

Vincent Tamet vincent.tamet at exoclick.com
Mon Jul 12 17:59:58 UTC 2021


Hi,

I would like to know how to deactivate the "?" refresh_pattern filter ?
(As most web pages nowaday should use cache-control or expire, I guess the
correct usage of headers should be enough to permit us to cache requests
with "?" !?
Advice are welcome...)

For example for /cgi-bin/:
#refresh_pattern -i (/cgi-bin/)     0      0%        0
1626107114.552    812 192.168.14.224 TCP_MEM_HIT/200 1988993 GET
https://test5vince.titi.com/cgi-bin/201.gif - HIER_NONE/- image/gif

refresh_pattern -i (/cgi-bin/)     0      0%        0
1626107233.336   4729 192.168.14.224 TCP_REFRESH_UNMODIFIED_ABORTED/200
229496 GET https://test5vince.titi.com/cgi-bin/201.gif - FIRSTUP_PARENT/
127.0.0.1 image/gif

But for \?:
#refresh_pattern -i (/cgi-bin/|\?)     0   0%        0
1626107559.200   6441 192.168.14.224 TCP_MISS/200 1988987 GET
https://test5vince.titi.com/201.gif? - FIRSTUP_PARENT/127.0.0.1 image/gif

Best regards
Vince

PS:
< HTTP/2 200
< server: nginx
< date: Mon, 12 Jul 2021 16:42:31 GMT
< content-type: image/gif
< content-length: 1988458
< last-modified: Mon, 12 Jul 2021 16:18:23 GMT
< cache-control: max-age=1800
< strict-transport-security: max-age=60; includeSubDomains
< x-content-type-options: nosniff
< x-frame-options: SAMEORIGIN
< x-xss-protection: 1; mode=block
< accept-ranges: bytes
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.squid-cache.org/pipermail/squid-users/attachments/20210712/3b4fc5c5/attachment.htm>


More information about the squid-users mailing list