Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Why does store.log show RELEASEs for cache hits?

cache hits releases
0
10 Posted

Why does store.log show RELEASEs for cache hits?

0

there are plenty of RELEASE entries in the store log with filenumber FFFFFFFF that correspond to access.log entries with hits (e.g. TCP_HIT/200). Since they were found in the cache, they must have been cachable. How is it that these unchachable responses are served as hits? The store.log entries that you refer to are most likely cache validation responses. Squid sends an If-Modifided-Since (or other validation) request to the origin server. If the response comes back as 304, then the client receives the original cached response from Squid. When analyzing store.log, be sure to consider the status code field (6th). You may want to ignore all log entries where the status code is not 200 (Ok).

0

there are plenty of RELEASE entries in the store log with filenumber FFFFFFFF that correspond to access.log entries with hits (e.g. TCP_HIT/200). Since they were found in the cache, they must have been cachable. How is it that these unchachable responses are served as hits? The store.log entries that you refer to are most likely cache validation responses. Squid sends an If-Modifided-Since (or other validation) request to the origin server. If the response comes back as 304, then the client receives the original cached response from Squid. When analyzing store.log, be sure to consider the status code field (6th). You may want to ignore all log entries where the status code is not 200 (Ok).

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.