On 21/12/17 13:39, Medya wrote:
I meant in pure academic sense, not for using in real world. what is
the default validation date, let say we own our own network, can we tell
it never expire, or expire in 1 year? so we cache all the photos,and all
our private network users can just access the same photo without ever
going to public internet?
For academic answers I suggest you read through RFC 7234 and 7232.
<https://tools.ietf.org/html/rfc7234>
<https://tools.ietf.org/html/rfc7232>
Squid provides the refresh_pattern directive where you can supply custom
default parameters for the heuristic caching algorithm for responses
which lack sufficient details. The default squid.conf refresh_pattern
definition provides parameters for up to 1 week of caching.
refresh_pattern directive also provides some overrides to make those
heuristics be applied to responses where it SHOULD NOT be used. Be
conservative using those, the person who designed the site has a lot
better knowledge of what could or does go wrong. Everything choice of
theirs you override risks breakage in subtle ways you may not be aware
of nor able to detect easily.
eg did you ever consider that "photos" includes Captcha and bioprint
authentication details?
or that content in HTTP/1.1 changes based on which Browser clients are
using?
Amos
_______________________________________________
squid-users mailing list
squid-users@xxxxxxxxxxxxxxxxxxxxx
http://lists.squid-cache.org/listinfo/squid-users