LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-17-2010, 02:38 PM   #1
scmbg
Member
 
Registered: Oct 2008
Location: Mexico City
Distribution: Fedora
Posts: 65

Rep: Reputation: 15
Question, I dont want Squid caching XML files.


Hello, I'm experimenting with Squid [ job task =( ]

Now Squid is configured to cache deb, zip, tbz2, gz, flv, etc. but I dont know how skip caching xml and other file types.

Any Suggestions?
Thanks!
 
Old 03-17-2010, 02:46 PM   #2
rweaver
Senior Member
 
Registered: Dec 2008
Location: Louisville, OH
Distribution: Debian, CentOS, Slackware, RHEL, Gentoo
Posts: 1,833

Rep: Reputation: 166Reputation: 166
You would setup an regex acl that matched the file extensions you don't want cached then 'cache deny AclName', if memory serves me it's a lot like this:

Code:
acl NoCacheURL url_regex -i \.xml
cache deny NoCacheURL
(Edit: Might wanna make it a bit more restrictive than that of course)

Last edited by rweaver; 03-17-2010 at 02:53 PM.
 
1 members found this post helpful.
Old 03-18-2010, 02:26 AM   #3
scmbg
Member
 
Registered: Oct 2008
Location: Mexico City
Distribution: Fedora
Posts: 65

Original Poster
Rep: Reputation: 15
Thanks, it woks!

And of course, I add other filetypes, even websites.
 
  


Reply


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
Squid Proxy Not Caching Files apit Linux - Networking 2 10-21-2009 11:48 AM
Squid 3 transparent proxy caching question br00tal Linux - Networking 1 10-15-2008 09:58 AM
Squid / Apache as caching server for remote xml feeds jimchristy Linux - Software 0 08-02-2006 08:13 AM
caching with squid kernelvn Linux - Networking 2 07-18-2005 12:54 AM
how to do caching on squid? gigi Linux - Software 2 02-23-2004 11:26 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:34 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration