Skip to content

You're viewing documentation for a pre-release version. View the latest stable version

Instance Property

eTagHashCacheCapacity

How many file content hashes to keep for advanced ETag comparison.
var eTagHashCacheCapacity: UInt

Discussion

Only files served with advancedETagComparison enabled are hashed, and each entry is just a path and a digest — raise this when serving more such files than the default holds, so their hashes aren’t evicted before they’re used again. A new capacity applies from the next hash cached, so lowering it doesn’t discard entries already held.