AnswerBun.com

Find out why Squid isn't caching files

Super User Asked by Trevor Sullivan on October 26, 2020

I’m running Squid in a Docker container, thanks to the b4tman/squid image on Docker Hub.

Environment

  • Windows 10
  • Docker Desktop Linux VM
  • Testing with Chrome 85
  • Configured proxy in Windows 10 whole-system proxy configuration

Squid Configuration

  • I set the maximum_object_size 300 MB so that I could cache larger files.
  • I also configured a filesystem cache using cache_dir ufs /var/cache/squid 2000 16 256
  • Enabled large memory cache cache_mem 800 MB

However, when I try to download certain files, they aren’t being cached. I can tell, because the files are downloading again, on my slower internet connection.

I tried adding this line:

refresh_pattern -i .(iso|avi|wav|mp3|mp4|mpeg|swf|flv|x-flv)$ 43200 90% 432000 override-expire ignore-no-cache ignore-no-store ignore-private

Files That Are Cached

The files below ARE being cached by Squid, and download instantaneously.

Files That Are NOT Cached

The following files are NOT being cached in Squid.

Question: How can I discover why Squid isn’t caching certain files, while other files are being properly cached?

Add your own answers!

Related Questions

access to Azure Active Directory

0  Asked on December 19, 2020 by sudhakar-reddy

 

Unable to copy in bluestacks

2  Asked on December 18, 2020 by sagar

         

SSH Multiple Session -> “stdin: is not a tty”

1  Asked on December 18, 2020 by mijago

       

XenServer: Backing up VMs to NAS

0  Asked on December 17, 2020 by grumpy-ol-bear

     

VirtualBox is very slow in Windows 10

11  Asked on December 17, 2020 by ali

     

Sed for windows

2  Asked on December 17, 2020 by thesavo

     

Identify 4-pin power socket

0  Asked on December 16, 2020 by c_b

     

AT commands to activate CDMA modem?

0  Asked on December 16, 2020 by david-pfeffer

     

ssh-keyscan returns different values on each invocation

0  Asked on December 16, 2020 by sweetjonnie

 

less command does not open zip files on debian

2  Asked on December 16, 2020 by m-j

         

Ask a Question

Get help from others!

© 2022 AnswerBun.com. All rights reserved. Sites we Love: PCI Database, MenuIva, UKBizDB, Menu Kuliner, Sharing RPP