Install and Configure Squid Cache on Windows 7 & 8.1
First of all download and install:
https://github.com/diladele/squid3-windows
Install it on a directory with no name spaces, I suggest C:\Squid
Do not start squid untill is fully configured to get the most of it. ok?
Config:
go to C:\Squid\etc\squid\squid.conf and add/edit the following lines to enable pipelining compatability, disk cache and enhanced memory cache.
#HTTP PIPELINING
pipeline_prefetch 8 # def 0, 1+value - 11 max parallel connections on mosts ISP's
maximum_single_addr_tries 4 #def 1
read_ahead_gap 32 KB
connect_retries 8
detect_broken_pconn on
client_request_buffer_max_size 1024 KB
client_persistent_connections on
server_persistent_connections on
dead_peer_timeout 11 seconds
minimum_icp_query_timeout 50
icp_query_timeout 3500
maximum_icp_query_timeout 4000
mcast_icp_query_timeout 3500
server_idle_pconn_timeout 30 seconds
request_header_max_size 96 KB
#CACHE TWEAKS
cache_swap_low 90
cache_swap_high 95
#MEMORY CACHE
cache_mem 128 MB #default values is 128
maximum_object_size_in_memory 1024 KB #default is 512KB
#DISK CACHE
# cache_dir ufs path/to/cache/directory size_in_MB 16 256
cache_dir ufs C:/Squid/var/cache/squid 1024 16 256
maximum_object_size 4096 KB
minimum_expiry_time 90 seconds
# pictures & images
refresh_pattern -i \.(gif|png|jpeg|jpg|bmp|tif|tiff|ico)$ 10080 60% 26600 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private ignore-no-store
refresh_pattern -i \.(gif|png|jpeg|jpg|bmp|tif|tiff|ico)\? 10080 60% 26600 override-expire override-lastmod reload-into-ims ignore-reload ignore-no-cache ignore-auth ignore-private ignore-no-store
#flash & media
refresh_pattern -i \.(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 43200 95% 432000 override-expire ignore-no-cache ignore-no-store ignore-private store-stale
#to cache no-cache images and flash content and revalidate them when needed
This config can be used on Squid 3.5 linux to optimize performance.
Now if you need more info about configuring squid go to
http://www.squid-cache.org/Doc/config/
Create cache directory structure:
execute in CMD
C:\Squid\bin\squid.exe -z
This will create the mentioned directory structure at cache_dir
Now we can Start Squid Server tray
Squid will be operating using port 3128, accesible on 127.0.0.1 and your DHCP/Static IP
use Squid Server tray to start/stop squid
the service name is squidsrv.
If you use Firefox, you might enable pipelining.
write about:config on addres bar and press enter
change the following parameters.
network.http.pipelining true
network.http.pipelining.abtest true
network.http.pipelining.aggressive false
network.http.pipelining.reschedule-timeout 2200
network.http.pipelining.ssl true
network.http.proxy.pipelining true
TheFox
Saturday, February 14, 2015
Monday, February 2, 2015
Speedup Flash Games on Firefox!
Speedup Flash Games on Firefox!
Make facebook and any other flash game/content go faster on firefox doing the following:
1. Install Greasemonkey 2.3 (Oct 2014) or newer (restart needed)
https://addons.mozilla.org/en-US/firefox/addon/greasemonkey/
2. Install Flash Quality Changer Userscript (install and enable)
https://greasyfork.org/es/scripts/3845-flash-quality-changer
3. Test flash quality
go here: http://helpx.adobe.com/flash-player.html
it will load a flash animation (a tree with a tire)
right click on the animation, go to quality
the "medium" quality should be checked on.
This method is useful for older/slower computers, also for minilaptops and other low end equipment.
Works on any Operative System and also on Firefox based browsers like Iceweasel on linux
this method should work on chrome, but It could be easier installing
FRQc - Flash Render Quality changer
https://chrome.google.com/webstore/detail/frqc-flash-render-quality/jklnclajhlcbghmgkljidaofhcnmjffoSee ya!
TheFox
Subscribe to:
Comments (Atom)