Search squid archive

Re: Squid 3.5.27 not caching at all

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

 



On 4/08/19 1:18 am, Mohamed Ali Ahmed wrote:
>     You have not provided enough information for us to know whether this is
>     a problem or testing mistake.
> 
>     What is this unstated "minimal change" you made that made caching
>     suddenly stop working? 
> 
>  The only change i have made is adding NOC ACL and uncommenting the
> cache_dir ufs.
> 

Okay.

>     What exactly does "visiting the same website over and over again" mean?
>     what exact actions did you do?
> 
> I expected when i visit a website for the time it will miss and after
> retrieving it that squid will cache it internally. if i visit the same
> website again, squid to read it from the local cache. i was visiting by
> adding a new tap using chrome or visiting from another browser like MS
> edge or IE. 
> 

Ah. This website uses "Vary: Accept-Encoding" and each web browser
supports different types of encoding, or has different preference order
for the ones they do share.

So the first request from each browser should be expected to be a MISS.
Only the second use by that particular browser can be expected to HIT or
REFRESH. I'm not sure if Chrome new-tab does the same, it should not but
maybe.
You can add "debug_options 11,2" to get a cache.log trace of the headers
from each test and see if they should have been a MISS, HIT or REFRESH.



>     Please do not do that "allow all".
> 
>     For one thing it makes your NOC ACL pointless, *everybody* is allowed to
>     use your proxy for whatever they want to do.
> 
>     If you did it to debug a caching problem, be aware that http_access has
>     nothing to do with cache. 
> 
> Thank you amos, I have changed to  http_access deny all   instead of
> http_access allow all
>  Please ask me anything else i should share with so that you can help
> me. thank you. 
> 

The 11,2 debug trace log would help. You may be able to find the problem
yourself from that.


> 
>      - Pressing refresh, Shift+reload, or CTL+refresh in a browser will
>     *force* a MISS - yet comes under the description you gave.
>       - some tools send headers to forbid cached contents being delivered by
>     default. So cannot be used for this kind of test without special
>     options.  
> 
> So what do you recommend i do in order to check if squid is caching or not?
>  

If you need to use a browser, then clicking on the address bar and
pressing enter re-fetches that URL without any cache affecting requirements.

Or curl, wget or squidclient tools can be used to test a single URL fetch.

Amos
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users




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

  Powered by Linux