Quantcast
Channel: Active questions tagged https - Stack Overflow
Viewing all articles
Browse latest Browse all 1821

How to force Squid forward proxy (with SSL-bump) to cache dynamic HTTPS API responses for a fixed TTL?

$
0
0

I'm using Squid as a forward proxy with SSL-bump to cache responses from a dynamic HTTPS API (e.g., https://www.uuidtools.com/api/generate/v4/count/1). The API always returns a new value and sends anti-caching headers (Cache-Control: no-cache, private, no-store).

What I want:Squid should cache the first response for a given URL and serve it to all clients for a fixed TTL (e.g., 1 minute), regardless of response headers.After TTL expires, Squid fetches a new response and repeats.

What I tried:Aggressive refresh_pattern with all overridesstore_miss allow allStoreID helper to force the same cache key

Problem:Squid still fetches from the origin on every request (no cache HITs), even within the TTL.

Question:Is there any way to force Squid (as a forward proxy with SSL-bump) to cache and serve dynamic HTTPS responses for a fixed TTL, completely ignoring response headers? Or is this fundamentally impossible with Squid?


Viewing all articles
Browse latest Browse all 1821

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>