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.

How come some objects do not get cached?

cached objects
0
Posted

How come some objects do not get cached?

0

To determine whether a given object may be cached, Squid takes many things into consideration.

0

To determine whether a given object may be cached, Squid takes many things into consideration. The current algorithm (for Squid-2) goes something like this: • Responses with Cache-Control: Private are NOT cachable. • Responses with Cache-Control: No-Cache are NOT cachable. • Responses with Cache-Control: No-Store are NOT cachable. • Responses for requests with an Authorization header are cachable ONLY if the reponse includes Cache-Control: Public. • Responses with Vary headers are NOT cachable because Squid does not yet support Vary features. • The following HTTP status codes are cachable: • 200 OK • 203 Non-Authoritative Information • 300 Multiple Choices • 301 Moved Permanently • 410 Gone However, if Squid receives one of these responses from a neighbor cache, it will NOT be cached if ALL of the Date, Last-Modified, and Expires reply headers are missing. This prevents such objects from bouncing back-and-forth between siblings forever. A 302 Moved Temporarily response is cachable ONLY

0

To determine whether a given object may be cached, Squid takes many things into consideration. The current algorithm (for Squid-2) goes something like this: • Responses with Cache-Control: Private are NOT cachable. • Responses with Cache-Control: No-Cache are NOT cachable. • Responses with Cache-Control: No-Store are NOT cachable. • Responses for requests with an Authorization header are cachable ONLY if the reponse includes Cache-Control: Public. • Responses with Vary headers are NOT cachable because Squid does not yet support Vary features. • The following HTTP status codes are cachable: • 200 OK • 203 Non-Authoritative Information • 300 Multiple Choices • 301 Moved Permanently • 410 Gone However, if Squid receives one of these responses from a neighbor cache, it will NOT be cached if ALL of the Date, Last-Modified, and Expires reply headers are missing. This prevents such objects from bouncing back-and-forth between siblings forever. • A 302 Moved Temporarily response is cachable ON

Related Questions

What is your question?

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