大网数据广告活动
服务器运维问答

Can squid cache for https requests?

· 52CE 我爱测

Just as said in " Can squid cache objects from HTTPS sites? ", to cache objects from https sites, one would need to use the SSL bump feature. But, I can set https proxy as well as http one, even the SSL bump feature is not instal…

问题原文

原帖链接 · xpt · CC BY-SA 4.0

Just as said in "Can squid cache objects from HTTPS sites?", to cache objects from https sites, one would need to use the SSL bump feature.

But, I can set https proxy as well as http one, even the SSL bump feature is not installed. Does that means setting https proxy only means it can only let the content passing through without caching?

  • What is really happening without the SSL bump feature then?
  • What is preventing it to cache files like https://some.sites/some/path/image.png, so the next time people request it, it can be served from cache?

已采纳解答

原帖链接 · Steffen Ullrich · CC BY-SA 4.0

Unless a proxy is intercepting the HTTPS traffic (i.e. SSL bump) and thus gets access to the decrypted content, it cannot cache the traffic. When just being a non-intercepting HTTPS proxy squid will just build a tunnel to the final server whenever a client issues a CONNECT request and will forward all traffic without any changes. Even if the client would access the same resource again the proxy will not realize this since the traffic is encrypted differently, i.e. different encryption key and initialization vector. Similar it would not be possible to reply with a cached (encrypted) response since the encryption key used between client and final server would be different from the last access to this resource.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2020-05-01)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。