LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices



Reply
 
Search this Thread
Old 02-26-2013, 09:01 AM   #1
scanty
LQ Newbie
 
Registered: Jan 2013
Posts: 5

Rep: Reputation: Disabled
Configure squid to cache some type of objects only


Hi,

I need to configure squid server to cache certain type of objects ( pdf in my case ), as my cache partition is limited in size.

Is it there a possible way to achieve this through squid configuration ??
 
Old 02-26-2013, 12:02 PM   #2
salasi
Senior Member
 
Registered: Jul 2007
Location: Directly above centre of the earth, UK
Distribution: SuSE, plus some hopping
Posts: 3,919

Rep: Reputation: 779Reputation: 779Reputation: 779Reputation: 779Reputation: 779Reputation: 779Reputation: 779
Yes, squid configuration is the way to go. Well, it was going to be the obvious answer be for most squid configuring type things.

You want more? Try this.
 
Old 02-26-2013, 01:05 PM   #3
scanty
LQ Newbie
 
Registered: Jan 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by salasi View Post
Yes, squid configuration is the way to go. Well, it was going to be the obvious answer be for most squid configuring type things.

You want more? Try this.
salasi,

Do you mean to use the refresh_pattern as : 'refresh_pattern . 0 0% 0' at the end.
I have tried this, and I am getting TCP_REFRESH_HIT on the object ( which is being stored in the cache as well ).
I am using squid 2.7-STABLE version.

-scanty
 
Old 02-27-2013, 11:56 AM   #4
scanty
LQ Newbie
 
Registered: Jan 2013
Posts: 5

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scanty View Post
salasi,

Do you mean to use the refresh_pattern as : 'refresh_pattern . 0 0% 0' at the end.
I have tried this, and I am getting TCP_REFRESH_HIT on the object ( which is being stored in the cache as well ).
I am using squid 2.7-STABLE version.

-scanty
Okay, I got it.
Using cache directive along with acl to identify the objects will solve the problem.
Thanks salasi for pointing out.
 
  


Reply

Tags
squid


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Using Active directory Authentication of parent non-squid cache to child squid cache espiya7 Linux - Server 0 05-05-2009 09:04 AM
Breakdown of cache objects rjlee Linux - Server 1 08-15-2007 04:19 AM
warning: cannot pass objects of non-POD type binarybob0001 Programming 9 05-30-2006 01:50 AM
cache all objects xnet_online Linux - Software 1 04-28-2006 02:09 PM


All times are GMT -5. The time now is 08:11 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration