Stas Kanitskiy wrote:
Hello,

1.This is the refresh_pattern part of my squid.conf:

refresh_pattern .               0       20%     4320
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern -i \.gif$       14400   80%     43200 ignore-reload

When sending the client request header - Cache-Control: no-cache for a .gif
file, I still get 'miss' from the squid.
Am I doing something wrong here?

From squid.conf.default:

#       The refresh_pattern lines are checked in the order listed here.
#       The first entry which matches is used.  If none of the entries
#       match the default will be used.


"refresh_pattern ." will match everything, so none of the other lines is ever used. Reverse the order and see if your results improve.

Chris

Reply via email to