Search squid archive

Re: Almost objects don't cached (reverse proxy squid 3.1)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Calvin Park wrote:
Hello Squid Users.~

My squid.conf below.

---------------------------------------------------------------------------------------------------------------------------
http_port 80 vhost
https_port 443 accel cert=/etc/squid/a.crt  key=/etc/squid/a.pem
cafile=/etc/squid/a.ca protocol=https

cache_peer  1.1.1.1 parent  80 0 no-query originserver name=my_parent
no-digest no-netdb-exchange
acl s1_domain dstdomain  img.test.com
http_access allow s1_domain
cache_peer_domain my_parent img.test.com
http_access deny all

# We recommend you to use at least the following line.
hierarchy_stoplist cgi-bin ?

# Uncomment and adjust the following to add a disk cache directory.
cache_dir ufs /cache 36000 16 256

# Add any of your own refresh_pattern entries above these.
refresh_pattern ^ftp:           1440    20%     10080
refresh_pattern ^gopher:        1440    0%      1440
refresh_pattern .               1440      50%     2880  reload-into-ims

---------------------------------------------------------------------------------------------------------------------------

I make script like this : curl -O/dev/null http://img.TEST.com/aaaaaaaa.gif
But almost object do not store in cache_dir and that connect the
Origin server directly
I ran the script twice , same result. ( some object was cached )
I want to store all object in my disk and prevent to code (304 or 200)
at Origin server

Not possible. 200 is how objects get added to your cache. 304 is part of how they are kept in cache.


And I have wonder what is mean about "TCP_REFRESH_UNMODIFIED"

It means:
 Client (using TCP) requested an object...
 an old one was found in cache ...
 checked for usability (REFRESH) ...
 and found to be okay (UNMODIFIED).

result: cached object was sent to the client.



How can I do ?


Thank you for reading this :-)

PS.

In STORE.LOG. almost of object was RELEASE.

That is maybe more of a problem.

Find the worst URLs and use redbot.org to see what if any problems they have.

Amos
--
Please be using
  Current Stable Squid 2.7.STABLE9 or 3.1.5


[Index of Archives]     [Linux Audio Users]     [Samba]     [Big List of Linux Books]     [Linux USB]     [Yosemite News]

  Powered by Linux