Advertisement
ujiajah1

refresh.conf

Oct 15th, 2016
224
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 10.06 KB | None | 0 0
  1. #!/bin/sh -e
  2. # REFRESH PATTERN
  3.  
  4. refresh_pattern -i ^http.*squid.* 43200 100% 799000 override-expire override-lastmod ignore-reload ignore-no-store ignore-must-revalidate ignore-private ignore-auth
  5. refresh_pattern -i ^http.*squid\.internal.* 43200 100% 799000 override-expire override-lastmod ignore-reload ignore-no-store ignore-must-revalidate ignore-private ignore-auth
  6.  
  7. refresh_pattern static\.(xx|ak)\.fbcdn\.net*\.(jpg|gif|png) 241920 99% 241920 ignore-reload override-expire ignore-no-store
  8. refresh_pattern ^https?\:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png) 241920 99% 241920 ignore-reload override-expire ignore-no-store
  9. refresh_pattern (akamaihd|fbcdn)\.net 14400 99% 518400  ignore-no-store ignore-private ignore-reload ignore-must-revalidate store-stale
  10. refresh_pattern -i https?:\/\/.*\.xx\.fbcdn\.net\/.*\.(jpg|png) 43830 99% 259200 override-expire override-lastmod ignore-reload
  11. refresh_pattern -i ^https?\:\/\/video\.(.*)\.fbcdn\.net\/(.*?)\/([0-9_]+\.(mp4|flv|avi|mkv|m4v|mov|wmv|3gp|mpg|mpeg)?)(.*) 241920 99% 241920 ignore-no-store ignore-reload override-expire
  12. refresh_pattern (audio|video)\/(webm|mp4) 129600 99% 129600 ignore-reload override-expire override-lastmod ignore-must-revalidate  ignore-private ignore-no-store ignore-auth store-stale
  13. refresh_pattern -i \/speedtest\/.*\.(txt|jpg|png|swf)  0  99% 14400 override-expire ignore-reload ignore-private ignore-reload override-lastmod reload-into-ims
  14. refresh_pattern -i reverbnation.com 1440 99% 14400 override-expire override-lastmod ignore-no-cache ignore-private ignore-must-revalidate ignore-reload store-stale
  15. refresh_pattern -i (yimg|twimg)\.com\.* 1440 100% 129600 override-expire ignore-reload reload-into-ims
  16. refresh_pattern -i (ytimg|ggpht)\.com\.*    1440 80% 129600 override-expire override-lastmod ignore-auth ignore-reload reload-into-ims
  17. refresh_pattern -i (get_video\?|videoplayback\?|videodownload\?|\.mp4|\.webm|\.flv|((audio|video)\/(webm|mp4))) 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  18. refresh_pattern -i ^https?\:\/\/.*\.googlevideo\.com\/videoplayback.*   10080 99% 43200 override-lastmod override-expire ignore-reload reload-into-ims ignore-private reload-into-ims ignore-auth store-stale
  19. refresh_pattern ^\.*(streamate.doublepimp.com.*\.js\?|utm\.gif|ads\?|rmxads\.com|ad\.z5x\.net|bh\.contextweb\.com|bstats\.adbrite\.com|a1\.interclick\.com|ad\.trafficmp\.com|ads\.cubics\.com|ad\.xtendmedia\.com|\.googlesyndication\.com|advertising\.com|yieldmanager|game-advertising\.com|pixel\.quantserve\.com|adperium\.com|doubleclick\.net|adserving\.cpxinteractive\.com|syndication\.com|media.fastclick.net).* 1440 99% 14400 ignore-private override-expire ignore-reload ignore-auth max-stale=1440
  20. refresh_pattern \.(ico|video-stats) 1440 99% 14400 override-expire ignore-reload ignore-private ignore-auth override-lastmod ignore-must-revalidate
  21.  
  22. refresh_pattern \.video\.msn\.com\/.*\/entityid\/[a-zA-Z0-9_\-]+\? 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  23. refresh_pattern \.android\.clients\.google\.com\/market\/GetBinary\/ 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  24. refresh_pattern \.(youtube|googlevideo)\.com\/videoplayback\? 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  25. refresh_pattern \.(youtube|googlevideo)\.com\/videoplayback\/ 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  26. refresh_pattern stream\.aol\.com\/(.*)/[a-zA-Z0-9]+\/(.*)\.(flv|mp4) 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  27. refresh_pattern videos\.5min\.com\/(.*)/[0-9_]+\.(mp4|flv) 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  28. refresh_pattern \.blip\.tv\/(.*)\.(m4v|mp4|flv) 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  29. refresh_pattern proxy[a-z0-9\-]?[a-z0-9]?[a-z0-9]?[a-z0-9]?\.dailymotion\.com\/(.*)\.(flv|on2|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg) 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  30. refresh_pattern vid\.akm\.dailymotion\.com\/(.*)\.(flv|on2|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg) 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  31. refresh_pattern \.dmcdn\.net\/(.*)\.(flv|on2|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg) 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  32. refresh_pattern video\.(.*)\.fbcdn\.net\/(.*)/[0-9_]+\.(mp4|flv|avi|mkv|m4v|mov|wmv|3gp|mpg|mpeg) 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  33. refresh_pattern (.*)\.myspacecdn\.com\/(.*)\/[a-zA-Z0-9]+\/vid\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg) 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  34. refresh_pattern (.*)\.myspacecdn\.(.*)\.footprint\.net\/(.*)\/[a-zA-Z0-9]+\/vid\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg) 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  35. refresh_pattern c\.wrzuta\.pl\/w[a-zA-Z0-9]+\/[a-zA-Z0-9]+$ 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  36. refresh_pattern \.hardsextube\.com\/.*\/.*\.(flv|mp4|avi|mkv|mp3|rm|rmvb|m4v|mov|wmv|3gp|mpg|mpeg) 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  37. refresh_pattern -xh\.clients\.cdn[0-9a-zA-Z]?[0-9a-zA-Z]?[0-9a-zA-Z]?\.com\/data\/(.*)\.flv 241920 100% 241920 override-expire ignore-reload ignore-private ignore-no-store ignore-must-revalidate reload-into-ims ignore-auth store-stale
  38.  
  39. refresh_pattern -i \.(w.?(v|bm)|mp(e?g|a|e|[1-4])|ts(.?)|flv|a(vi|ac)) 10080 80% 10080 override-expire override-lastmod reload-into-ims
  40. refresh_pattern -i \.(m(a|v)|og(a|g|v)|ms(i|u|p)|rm|r(a|p)m|snd|vob|wav|3g(2|p)|m3u8) 10080 80% 10080 override-expire override-lastmod reload-into-ims
  41. refresh_pattern -i \.(gif|jp(e?g|e|2|c|x)|p(ng|gp)|ico) 10080 80% 10080 override-expire override-lastmod reload-into-ims
  42. refresh_pattern -i \.(sw(c|f)|dat|psd|bmp|tiff?|jb2|iff|wbmp|xbm|svgz?) 10080 80% 10080 override-expire override-lastmod reload-into-ims
  43. refresh_pattern -i \.(pp(t?x)|s|t)|pdf|rtf|cb(r|z|t)|xl(s?x)|do(c?x)) 10080 80% 10080 override-expire override-lastmod reload-into-ims
  44. refresh_pattern -i \.(crx|dmg|7z|deb|msi|apk|exe|rar|zip|iso) 10080 80% 10080 override-expire override-lastmod reload-into-ims
  45. refresh_pattern -i \.(pkg|run|mpkg|tar|rpm|gz|tgz|img|cab|dll) 10080 80% 10080 override-expire override-lastmod reload-into-ims
  46. refresh_pattern -i \.(cpio|shar|ace|arc|arj|cfs|cpt|dar|dgc|lzh|lha|lzx|pea|wim|zpaq|sitx?|qt) 10080 80% 10080 override-expire override-lastmod reload-into-ims
  47. refresh_pattern -i \.(ar|dump|zoo|pax|dar|lzip|gzip|bzip2|lzma|xz|jar|mem|u(c|r|e)(0|2)|b1|pak) 10080 80% 10080 override-expire override-lastmod reload-into-ims
  48.  
  49. refresh_pattern -i \.(w.?(v|bm)|mp(e?g|a|e|[1-4])|ts(.?)|flv|a(vi|ac)) 10080 100% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
  50. refresh_pattern -i \.(m(a|v)|og(a|g|v)|ms(i|u|p)|rm|r(a|p)m|snd|vob|wav|3g(2|p)|m3u8) 10080 100% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
  51. refresh_pattern -i \.(gif|jp(e?g|e|2|c|x)|p(ng|gp)|ico) 10080 100% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
  52. refresh_pattern -i \.(sw(c|f)|dat|psd|bmp|tiff?|jb2|iff|wbmp|xbm|svgz?) 10080 100% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
  53. refresh_pattern -i \.(pp(t?x)|s|t)|pdf|rtf|cb(r|z|t)|xl(s?x)|do(c?x)) 10080 100% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
  54. refresh_pattern -i \.(crx|dmg|7z|deb|msi|apk|exe|rar|zip|iso) 10080 100% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
  55. refresh_pattern -i \.(pkg|run|mpkg|tar|rpm|gz|tgz|img|cab|dll) 10080 100% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
  56. refresh_pattern -i \.(cpio|shar|ace|arc|arj|cfs|cpt|dar|dgc|lzh|lha|lzx|pea|wim|zpaq|sitx?|qt) 10080 100% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
  57. refresh_pattern -i \.(ar|dump|zoo|pax|dar|lzip|gzip|bzip2|lzma|xz|jar|mem|u(c|r|e)(0|2)|b1|pak) 10080 100% 43800 override-expire override-lastmod ignore-reload ignore-no-store ignore-private ignore-auth ignore-must-revalidate store-stale
  58.  
  59. #KEEP THESE LINES AT BOTTOM OF CONFIGURATION
  60. refresh_pattern ^ftp:  1440 20% 10080
  61. refresh_pattern ^gopher: 1440 0% 1440
  62. refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
  63. refresh_pattern -i .(html|htm|css|js|xml|json)$ 1440 75% 40320
  64. refresh_pattern (index|home|default)\.(htm|php|asp|asp|aspx|shtml|cfm|cfml|phtml) 0 0% 0
  65. refresh_pattern \.(php|asp|asp|aspx|shtml|cfm|cfml|phtml|jsp|cgi|asx)\? 0 0% 0
  66. refresh_pattern . 0 0% 4320
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement