Hallo:
I've configured squid as a reverse proxy.
I connect it with https protocol.
I want to cache all images, so I've defined:
cache_mem 32 MB
cache_mgr
myemail@company.com
cache_dir ufs /var/spool/squid 100 16 256
coredump_dir /var/spool/squid/cache
acl manager proto cache_object
refresh_pattern ^ftp: 1440 20% 10080
refresh_pattern ^gopher: 1440 0% 1440
refresh_pattern .
refresh_pattern \.jpg$ 1440 50% 2880
refresh_pattern \.jpeg$ 1440 50% 2880
refresh_pattern \.gif$ 1440 50% 2880
refresh_pattern \.bmp$ 1440 50% 2880
refresh_pattern \.png$ 1440 50% 2880
refresh_pattern \.svg$ 1440 50% 2880
refresh_pattern \.tif$ 1440 50% 2880
refresh_pattern \.tiff$ 1440 50% 2880
hierarchy_stoplist cgi-bin ?
acl QUERY urlpath_regex cgi-bin \?
cache deny QUERY
Nevertheless, every time I do something like:
https://server1.domain.com/pub/img/head.jpg
the request is sent to the Apache. I'd like that squid cache images and not to set them to the server.
What's wrong?
Thanks
Felipe