Simple is Best

Tuesday, November 23, 2004

 

jsp or php page cached using squid

Squid now is serving as reverse proxy before apache cluster server

some php and jsp page must be cached in squid to increase the response speed and decrease the j2ee or apache thread number.
using refresh_patterns solved it.
refresh_pattern -i .jsp 720 25% 1440 override-expire ignore-reload
refresh_pattern -i .php 720 20% 1440 override-expire ignore-reload
ignore-reload will prevent request no-cache etc,like ctrl+F5 under ie will refresh the squid cache,but ignore-reload will prevent it.
ATT:
squid default squid.conf include refresh_pattern -i .js 360 25% 1440, the above -i .jsp must stay top before this.else -i .js will be suit for the parsing.

Comments: Post a Comment

Subscribe to Post Comments [Atom]





<< Home

Archives

May 2004   November 2004   April 2005   January 2006   June 2006   March 2008   April 2008  

This page is powered by Blogger. Isn't yours?

Subscribe to Posts [Atom]