Squid’s page fetch algorithm
Check cache for existing copy of object (lookup based on MD5 hash of URL)
If it exists in cache
- Check object’s expire time; if expired, fall back to origin server
- Check object’s refresh rule; if expired, perform an If-Modified-Since against origin server
- If object still considered fresh, return cached object to requester