Purpose

This is a tool to compare the HTTP headers of an actual page with a Squid-Cache policy. It will tell you whether the Squid proxy will serve a cached copy or go fech a new source file first.

Document properties

Last-Modified HTTP Header (Optional)
(Object) Date HTTP Header
Expires HTTP Header (Optional)
Current time (Optional)

Client request

Client Max Age
Force no-cache

Squid-Cache policy

MIN_AGE/MAX_AGE parameter
min - max
PERCENT parameter
%
Override
: Expire
: Modification
: No-cache
Calculation
AGE: 0 minutes (Now - Object Date)
LM_AGE: 0 minutes (Object Date - Last Modified)
LM_FACTOR: 100 %
RESULT: FRESH
(0 <= 0 )
FRESH: give copy from cache
STALE: get new copy from server

Graphical representation

NOW  
AGE  
MIN_AGE  
MAX_AGE  
NOW - 1 day  
NOW + 1 day  

Do you like these tools and you want to do something back? I have an Amazon wishlist here!

Keywords
cache, proxy, squid, expiration

Page provided by Peter Forret - Remarks to