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:04] – peter | pfsense:squid:local_cache [2020/07/15 09:30] (current) – external edit 127.0.0.1 | ||
---|---|---|---|
Line 14: | Line 14: | ||
steamstatic.com | steamstatic.com | ||
</ | </ | ||
+ | |Enable Offline Mode|Not checked| | ||
+ | |External Cache Managers| | | ||
---- | ---- | ||
Line 21: | Line 23: | ||
|Hard Disk Cache Size|50000| | |Hard Disk Cache Size|50000| | ||
|Hard Disk Cache System|aufs| | |Hard Disk Cache System|aufs| | ||
- | |Level 1 Directories|128| | + | |Level 1 Directories|64| |
|Hard Disk Cache Location|/ | |Hard Disk Cache Location|/ | ||
|Minimum Object Size|0| | |Minimum Object Size|0| | ||
- | |Maximum Object Size|2048| | + | |Maximum Object Size|1024| |
---- | ---- | ||
Line 30: | Line 32: | ||
===== Squid Memory Cache Settings ===== | ===== Squid Memory Cache Settings ===== | ||
- | | Memory Cache Size | + | |Memory Cache Size|3072| |
- | | Maximum Object Size in RAM | 1024 | + | |Maximum Object Size in RAM|1024| |
- | | Memory Replacement Policy | + | |Memory Replacement Policy|Heap GDSF| |
---- | ---- | ||
- | ===== Memory Replacement Policy | + | ===== Dynamic and Update Content |
- | |Cache Dynamic Content|Checked | + | |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 | ||
+ | |||
+ | # Dynamic Content. | ||
+ | refresh_pattern -i (/cgi-bin/|\?) 0 0% 0 | ||
+ | |||
+ | # Catch all. | ||
+ | # | ||
+ | refresh_pattern . 0 20% 4320 | ||
+ | </ | ||
pfsense/squid/local_cache.1585695849.txt.gz · Last modified: 2020/07/15 09:30 (external edit)