Skip to content

Commit

Permalink
agent: fix no-cache issue in squid for brave tool
Browse files Browse the repository at this point in the history
  • Loading branch information
ochafik committed Oct 24, 2024
1 parent 03b8641 commit 0f4fc8c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion examples/agent/squid/conf/squid.conf
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,16 @@ ssl_bump bump all
# Forbid access to the host.
# If you want to allow tools to call llama-server on the host (e.g. embeddings, or recursive thoughts),
# you can comment out the next two lines.
acl blocked_sites dstdomain host.docker.internal host-gateway
acl blocked_sites dstdomain host.docker.internal host-gateway docker.for.mac.localhost docker.for.mac.host.internal
http_access deny blocked_sites

# Allow all other traffic (you may want to restrict this in a production environment)
http_access allow all

request_header_access Cache-Control deny all
request_header_add Cache-Control "no-cache" all
# refresh_pattern ^.*$ 0 0% 0

# Cache Python packages
refresh_pattern -i ($|\.)(files\.pythonhosted\.org|pypi\.org)/.*?\.(whl|zip|tar\.gz)$ 10080 90% 43200 reload-into-ims

Expand All @@ -31,6 +35,7 @@ cache_mem 200 MB
maximum_object_size 1024 MB

# Configure logs
strip_query_terms off
cache_log /var/log/squid/cache.log
access_log /var/log/squid/access.log squid
cache_store_log none

0 comments on commit 0f4fc8c

Please sign in to comment.