February 2011
Intermediate to advanced
332 pages
9h 3m
English
Let's see an example of a refresh_pattern and try to calculate the freshness of an object:
refresh_patten -i ^http://example.com/test.jpg$ 0 60% 1440
Let's say a client requested the image at http://example.com/text.jpg an hour ago, and the image was last modified (created) on the web server six hours ago. Let's assume that the web server didn't specify the expiry time. So, we have the following values for the different variables:
lm-factor is 1÷5 = 20 percentLet's check whether the object is still fresh or not:
Read now
Unlock full access