<div dir="ltr"><div class="gmail_extra"><div>-----BEGIN PGP SIGNED MESSAGE-----</div><div>Hash: SHA1</div><div><br></div><div>Hi Karsten,</div><div><br></div><div>Thanks for getting back to me :)</div><div><br></div><div>> That sounds correct, assuming you have enough memory to really store</div><div>> responses indefinitely.  Realistically, you could safely discard them</div><div>> after an hour or even sooner.</div><div><br></div><div>Thanks for confirming. Re memory, I've set a configurable limit (defaults to 500) on how many responses can be simultaneously cached. Once the limit is exceeded the oldest entries will be dropped so eating memory shouldn't be an issue.</div><div><br></div><div>> But I'm more worried of</div><div>> thousands of mobile clients each making a handful of requests than a</div><div>> server caching responses a little less long than it could.</div><div><br></div><div>The issue is the other way round, I'm currently holding the cache longer than I should because it always returns a max-age of 300. Not really a huge issue for Tor Explorer but if someone builds some sort of analytics script with this module I don't want to be providing out of date data. Just wanted to confirm the header values mean what I think they mean, my web searches returned relatively little info.</div><div><br></div><div>> I guess my advice, except for the attempts to answer your questions</div><div>> above, is not to over-engineer the client-side cache for this Node.js</div><div>> module.</div><div><br></div><div>But over-engineering is fun and I have unlimited time :)</div><div>-----BEGIN PGP SIGNATURE-----</div><div>Version: GnuPG v1</div><div><br></div><div>iQEcBAEBAgAGBQJYVpAVAAoJEJPWEqnWHCgaUwoH/ikcPW0wKKXQ2rwMEVKXjmBy</div><div>Zcyp8SHkCyg3TPlTRUkqoUyxoiw8Ox57vjRGDx3lv20c+UZD9AwSsOMHaCEsg3Kp</div><div>kt6a3rpS6qvYGQyqAMki6Ks4f6VCnAEhm2NoFUUrceHzZ04JQjz8++HrbGZG6/ig</div><div>82Yzb/JUa+v+VTRH86nPRhiO9vPKPbW3HKZSADSYYYT0fusd0Qxm4tpyhicsiGBj</div><div>RXcqY4nTVCBEWHqJNT1Uf/Cyk0C4TCwDKP130DT2jCYqwjk/UyP1AM7wOVmA9boN</div><div>CxitRDSrwAHSmKsyfYnSuiWSMZNHGJy5onUgkxzMiXgv2MI9s/k1NA8nqwes5Mw=</div><div>=+Ka9</div><div>-----END PGP SIGNATURE-----</div><div><br></div></div></div>