Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

I've found information on how to keep squid from caching domains/IPs, however, that's not quite what I want. I'd like to prevent it from caching .jnlp and .jar files.

The core problem being that when I push updates out to our server, our users that are behind a squid proxy may not get the updated version for several days (apparently it takes that long for squid to figure out that the files have changed). Perhaps I've missed an even easier solution?

share|improve this question

2 Answers 2

up vote 6 down vote accepted

Maybe something like this in your conf:

acl DENYZIP urlpath_regex \.zip
no_cache deny DENYZIP

You could, of course, make a much more sophisticated regex that would handle multiple files (and change the acl name accordingly).

share|improve this answer
    
Hmmm, can't quite get this to work as written. Blows up with regex errors. Trying re-writes with a true regex. –  Brian Knoblauch May 21 '09 at 14:06
    
Bah, yeah my bad. *.zip is a "brain-on-auto-pilot" typo... Edited to remove the *. –  squillman May 21 '09 at 14:24

IIRC you do this by setting up refresh_pattern rules in your squid.conf file. This matches URL's by regex and sets caching policies for the matches. The reference manual describes it here.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.