Squid Web Cache wiki

Squid Web Cache documentation

🔗 GZIP Encoded Variants Being Replaced by Non-Compressed Objects

🔗 Synopsis

Squid stores a compressed reply variant fine but a non-compressed reply causes all subsequent replies to be non-compressed.

🔗 Symptoms

🔗 Explanation

(TBD: find relevant sections in the RFC.)

It is valid for a cache to serve a non-compressed reply to an Accept-Encoding: gzip or similar request. Squid has no way of knowing that an object has multiple variant types if any of the possible replies for the object contains no Vary: header.

In summary, Squid is doing the right thing. Origin servers need to set correct ETag and Vary: headers so variant content is correctly cached and served.

🔗 Workaround

🔗 See Also

🔗 Thanks

Categories: KnowledgeBase

Navigation: Site Search, Site Pages, Categories, 🔼 go up