pfsense:squid:local_cache
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
pfsense:squid:local_cache [2020/03/31 23:10] – peter | pfsense:squid:local_cache [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 17: | Line 17: | ||
|External Cache Managers| | | |External Cache Managers| | | ||
+ | ---- | ||
- | ===== Squid Hard Disk Cache Settings =====**| | + | ===== Squid Hard Disk Cache Settings ===== |
|Hard Disk Cache Size|50000| | |Hard Disk Cache Size|50000| | ||
Line 37: | Line 38: | ||
---- | ---- | ||
- | ===== Memory Replacement Policy ===== | + | ===== Dynamic and Update Content ===== |
+ | |||
+ | |Memory Replacement Policy|Checked| | ||
+ | |Custom refresh_patterns|< | ||
+ | # 1 year = 525600 mins, 1 month = 43800 mins, 1 week = 10080 min, 1 day = 1440 min | ||
+ | |||
+ | #Optional: dont cache wordpress admin panel | ||
+ | refresh_pattern (wp-admin) | ||
+ | |||
+ | # All Files. | ||
+ | refresh_pattern -i \.(3gp|7z|ace|asx|avi|bin|inc|cab|dat|qt|deb|rpm|divx|dvr-ms)(\? | ||
+ | refresh_pattern -i \.(rar|jar|gz|tgz|tar|bz2|iso|arj|lha|lzh|iop|nzp|pak|mar)(\? | ||
+ | refresh_pattern -i \.(m1v|m2(v|p)|mo(d|v)|(x-|)flv)(\? | ||
+ | refresh_pattern -i \.(jp(e? | ||
+ | refresh_pattern -i \.(mp(e? | ||
+ | refresh_pattern -i \.(og(x|v|a|g)|rar|rm|r(a|p)m|snd|vob|wav|ac4)(\? | ||
+ | refresh_pattern -i \.(pp(s|t)(x? | ||
+ | refresh_pattern -i \.(woff|txt|exe|dll|dmg|webm)(\? | ||
+ | refresh_pattern -i \.(pdf|rtf|xls(x? | ||
+ | refresh_pattern -i \.(css)(\? | ||
+ | refresh_pattern -i \.(js)(\? | ||
+ | |||
+ | refresh_pattern -i \.(html|htm)(\? | ||
+ | # | ||
+ | |||
+ | refresh_pattern -i \.(cdn) 10800 100% 43800 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private | ||
+ | refresh_pattern -i (cdn) 10800 100% 43800 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private | ||
+ | |||
+ | |||
+ | refresh_pattern \.ytimg\? 10800 90% 10800 override-expire ignore-reload ignore-no-cache | ||
+ | refresh_pattern ^http:// | ||
+ | refresh_pattern ^http:// | ||
+ | refresh_pattern ^http:// | ||
+ | refresh_pattern ^http:// | ||
+ | refresh_pattern ^http:// | ||
+ | refresh_pattern ^http:// | ||
+ | refresh_pattern ^http:// | ||
+ | |||
+ | refresh_pattern ^ftp: 1440 20% 10080 | ||
+ | refresh_pattern ^gopher: 1440 0% 1440 | ||
- | |Cache | + | # Dynamic Content. |
+ | refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 | ||
+ | |||
+ | # Catch all. | ||
+ | # | ||
+ | refresh_pattern . 0 20% 4320 | ||
+ | </ | ||
pfsense/squid/local_cache.1585696246.txt.gz · Last modified: 2020/07/15 09:30 (external edit)