http-extensions icon indicating copy to clipboard operation
http-extensions copied to clipboard

Revalidation

Open mnot opened this issue 1 year ago • 1 comments

The ability to group for purposes of revalidation was added somewhat speculatively. We should evaluate it and see if it's useful, safe, etc.

mnot avatar Dec 08 '23 00:12 mnot

Perhaps what we should do is remove revalidation, but assure that tags can be extended in a way that allows future uses like that to be safely specified.

mnot avatar Feb 20 '24 05:02 mnot

I'm inclined to say this is dangerous as-is.

Assume the deployment of a batch of resources has a file in it which does not always change with every release. If that resource is the first one to be revalidated, the lifetime of the stale resources is extended and the stale copies continue to be served. The cache will then fail to discover that they have changed, because it won't attempt to revalidate them.

If you want to do this, I think you need something like a group ETag, where the revalidation can indicate that this resource hasn't changed, but the state of the group has.

MikeBishop avatar Mar 22 '24 00:03 MikeBishop