EFW Support
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email?
Tuesday 31 December 2024, 05:10:20 am
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
Visit the official Endian Community Mailinglist
HERE
14262
Posts in
4377
Topics by
6517
Members
Latest Member:
Sandro
Search:
Advanced search
EFW Support
Support
EFW SMTP, HTTP, SIP, FTP Proxy Support
Cache dynamic content with squid refresh_pattern
0 Members and 0 Guests are viewing this topic.
« previous
next »
Pages:
[
1
]
Author
Topic: Cache dynamic content with squid refresh_pattern (Read 37470 times)
kieronrob
Full Member
Offline
Gender:
Posts: 57
Cache dynamic content with squid refresh_pattern
«
on:
Monday 26 August 2013, 06:44:22 pm »
Hi all,
I see this has been done in squid for dynamic content as well as windows and various AV updates.
Has anyone had any success with this in Endian? I have tried some patterns and it bombs out squid.
This can help with bandwidth and improve performance.
Please post any conf files that have this working!
I am using version 2.5.2 at the moment.
Logged
ferdinandbabst
Jr. Member
Offline
Posts: 1
Re: Cache dynamic content with squid refresh_pattern
«
Reply #1 on:
Thursday 26 September 2013, 04:35:14 pm »
Hi All
I also require dynamic content examples. I have tried posts on previous refresh_patterns but it does not seem to work.
My EFW version is also 2.5.2
Majority of websites use dynamic content
If anyone has working configs, please post
Thanks
Logged
kieronrob
Full Member
Offline
Gender:
Posts: 57
Re: Cache dynamic content with squid refresh_pattern
«
Reply #2 on:
Friday 27 September 2013, 05:27:20 pm »
Hi Ferdinandbabst,
I have these refresh patterns in squid now and they have not caused squid to stop working as yet. These must be inserted in /etc/squid/squid.conf.tmpl so that they do not get overwritten by changes in the web interface. I have increased the hit ratio to around 20%, but as I do not have many windows machines I cannot gauge their effectiveness on updates.
Please try them and post your results!
i inserted them at around line 264 in the squid.conf.tmpl file:
# cache updates
refresh_pattern -i .*microsoft\.com/.*\.(cab|exe|msi|msp) 259200 100% 259200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private;
refresh_pattern -i .*windowsupdate\.com/.*\.(cab|exe|msi|msp) 259200 100% 259200 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-private;
range_offset_limit 100 MB;
quick_abort_pct 60;
refresh_pattern ([^.]+.|)java.com/.*\.(zip|exe) 43200 100% 43200 reload-into-ims
refresh_pattern ([^.]+.|)adobe.com/.*\.(zip|exe) 43200 100% 43200 reload-into-ims
refresh_pattern ([^.]+.|)(download|adcdownload).(apple.|)com/.*\.(pkg|dmg) 4320 100% 43200 reload-into-ims;
#Facebook Pages
refresh_pattern -i \.facebook.com.*\.(jpg|png|gif) 129600 9999% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern -i \.fbcdn.net.*\.(jpg|gif|png|swf|) 129600 9999% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern static\.ak\.fbcdn\.net*\.(jpg|gif|png) 129600 9999% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern ^http:\/\/profile\.ak\.fbcdn.net*\.(jpg|gif|png) 129600 9999% 129600 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
#Facebook Games
refresh_pattern ^http:\/\/apps.facebook.com.*\/ 10080 9999% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store store-stale
refresh_pattern -i \.zynga.com.*\/ 10080 9999% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
refresh_pattern -i \.farmville.com.*\/ 10080 9999% 43200 ignore-reload override-expire ignore-no-cache ignore-no-store ignore-must-revalidate store-stale
#All File
refresh_pattern -i \.(3gp|7z|ace|asx|bin|deb|divx|dvr-ms|ram|rpm|exe|inc|cab|qt) 43200 99% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
refresh_pattern -i \.(rar|jar|gz|tgz|bz2|iso|m1v|m2(v|p)|mo(d|v)|arj|lha|lzh|zip|tar) 43200 99% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
refresh_pattern -i \.(jp(e?g|e|2)|gif|pn[pg]|bm?|tiff?|ico|swf|dat|ad|txt|dll) 43200 99% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
refresh_pattern -i \.(avi|ac4|mp(e?g|a|e|1|2|3|4)|mk(a|v)|ms(i|u|p)|og(x|v|a|g)|rm|r(a|p)m|snd|vob) 43200 99% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
refresh_pattern -i \.(pp(t?x)|s|t)|pdf|rtf|wax|wm(a|v)|wmx|wpl|cb(r|z|t)|xl(s?x)|do(c?x)|flv|x-flv) 43200 99% 43200 ignore-no-cache ignore-no-store ignore-must-revalidate override-expire override-lastmod reload-into-ims store-stale
refresh_pattern -i (/cgi-bin/|\?) 0 0% 0
refresh_pattern . 0 20% 4320
I used WinSCP as it has a nice editor. These lines might wrap in this post so make sure of the format.
Kieron
Logged
saluto
Full Member
Offline
Posts: 11
Re: Cache dynamic content with squid refresh_pattern
«
Reply #3 on:
Thursday 03 October 2013, 06:15:29 am »
Using Translator.
I need a recipe, because so far you can't do video cache, someone managed to?
use the Endian 2.5.2
Logged
Pages:
[
1
]
« previous
next »
Jump to:
Please select a destination:
-----------------------------
Announcements
-----------------------------
=> Project News
=> Latest News and Updates
-----------------------------
Support
-----------------------------
=> General Support
=> Installation Support
=> EFW SMTP, HTTP, SIP, FTP Proxy Support
=> VPN Support
=> Hardware Support
-----------------------------
Development
-----------------------------
=> EFW Wishlist
=> Contribute Your Customisations & Modifications
Page created in 0.094 seconds with 17 queries.
Powered by SMF 1.1 RC2
|
SMF © 2001-2005, Lewis Media
Design by
7dana.com