zeldor.biz

Linux, programming and more

Copyright © 2025
Log in

Squid disable cache for Domain

January 30, 2013 by Igor Drobot 2 Comments

Proxy

I had a problem with some AJAX based web sites, after some debugging a figured out that problems comes caching proxy (squid3). The content of this web sites was always outdated and sometimes I get strange errors.

Disabling cache for a single domain or a list of predefined domains was a great solution in my case, here it is:

Configuration snippet from /etc/squid3/squid.conf:

1
2
3
# Disable Cache for defined domains
acl disable-dom-cache dstdomain "/etc/squid3/acls/no-cache.acl"
cache deny disable-dom-cache

# Disable Cache for defined domains acl disable-dom-cache dstdomain "/etc/squid3/acls/no-cache.acl" cache deny disable-dom-cache

ACL:

1
2
cat /etc/squid3/acls/no-cache.acl 
.vk.com

cat /etc/squid3/acls/no-cache.acl .vk.com

Filed Under: Linux Tagged With: Cache, Proxy, Squid3

Categories

Archives

Tags

apache2 Apple arduino ARM Automation backup bash Cisco Cluster Corosync Database Debian Debian squeeze DIY DNS Fedora FTP Fun Icinga Ipv6 KVM Linux LVM MAC OS X Monitoring MySQL Nagios Nginx openSUSE OpenVPN PHP Proxy Python python3 qemu RAID rsync Samba security ssh Ubuntu virtualization Windows Windows 7 Wordpress

Comments

  1. Target says

    June 14, 2016 at 10:36

    Fantastic!!
    thank you

  2. Prodip says

    January 17, 2016 at 06:01

    Very helpful. saved a lot of time.

Leave a Reply

Your email address will not be published. Required fields are marked *

Yeaaah Cookie! We use cookies to ensure that we give you the best experience on our website. If you continue to use this site we will assume that you are happy with it.Ok