User Tools

Site Tools


pfsense:squid:refresh_patterns

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
pfsense:squid:refresh_patterns [2020/03/15 11:40] peterpfsense:squid:refresh_patterns [2020/07/15 09:30] (current) – external edit 127.0.0.1
Line 13: Line 13:
 ---- ----
  
-===== Refresh Patterns Use Cases =====+===== Master Refresh Pattern =====
  
  
Line 19: Line 19:
  
 ---- ----
 +
 +===== Other Squid Refresh Patterns =====
 +
 +[[PFSense:Squid:Refresh Patterns:Squid Refresh Patterns - Anti-Virus|Squid Refresh Patterns - Anti-Virus]]
  
 [[PFSense:Squid:Refresh Patterns:Squid Refresh Patterns - Facebook|Squid Refresh Patterns - Facebook]] [[PFSense:Squid:Refresh Patterns:Squid Refresh Patterns - Facebook|Squid Refresh Patterns - Facebook]]
  
 [[PFSense:Squid:Refresh Patterns:Squid Refresh Patterns - Microsoft|Squid Refresh Patterns - Microsoft]] [[PFSense:Squid:Refresh Patterns:Squid Refresh Patterns - Microsoft|Squid Refresh Patterns - Microsoft]]
 +
 +[[PFSense:Squid:Refresh Patterns:Squid Refresh Patterns - Ubuntu|Squid Refresh Patterns - Ubuntu]]
  
 [[PFSense:Squid:Refresh Patterns:Squid Refresh Patterns - YouTube|Squid Refresh Patterns - YouTube]] [[PFSense:Squid:Refresh Patterns:Squid Refresh Patterns - YouTube|Squid Refresh Patterns - YouTube]]
Line 78: Line 84:
 refresh_pattern ^ftp: 1440 20% 10080 refresh_pattern ^ftp: 1440 20% 10080
 refresh_pattern ^gopher: 1440 0% 1440 refresh_pattern ^gopher: 1440 0% 1440
-refresh_pattern -i .(gif|png|jpg|jpeg|ico)$ 10080 90% 43200 override-expire ignore-no-cache ignore-no-store ignore-private +refresh_pattern -i .(gif|png|jpg|jpeg|ico)$ 10080 90% 43200                               override-expire ignore-no-cache ignore-no-store ignore-private 
-refresh_pattern -i .(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 43200 90% 432000 override-expire ignore-no-cache ignore-no-store ignore-private +refresh_pattern -i .(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 43200 90% 432000            override-expire ignore-no-cache ignore-no-store ignore-private 
-refresh_pattern -i .(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff)$ 10080 90% 43200 override-expire ignore-no-cache ignore-no-store ignore-private+refresh_pattern -i .(deb|rpm|exe|zip|tar|tgz|ram|rar|bin|ppt|doc|tiff)$ 10080 90% 43200   override-expire ignore-no-cache ignore-no-store ignore-private
 refresh_pattern -i .index.(html|htm)$ 0 40% 10080 refresh_pattern -i .index.(html|htm)$ 0 40% 10080
 refresh_pattern -i .(html|htm|css|js)$ 1440 40% 40320 refresh_pattern -i .(html|htm|css|js)$ 1440 40% 40320
Line 135: Line 141:
  
 Install a caching DNS server on your server and have Squid use it so as to cut down on your DNS requests.  This [[http://www.httpcompression.net/howtos/pdnsd.html|how-to]] may be helpful. Install a caching DNS server on your server and have Squid use it so as to cut down on your DNS requests.  This [[http://www.httpcompression.net/howtos/pdnsd.html|how-to]] may be helpful.
- 
----- 
- 
- 
----- 
- 
- 
  
 ---- ----
Line 153: Line 152:
  
 ===== References ===== ===== References =====
 +
 +http://www.squid-cache.org/
 +
 +https://www.linux.com/news/speed-your-internet-access-using-squids-refresh-patterns/
  
 http://www.squid-cache.org/Doc/config/refresh_pattern/ http://www.squid-cache.org/Doc/config/refresh_pattern/
pfsense/squid/refresh_patterns.1584272438.txt.gz · Last modified: 2020/07/15 09:30 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki